exupery-core-async 0.3.4 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ class Unguaranteed_Procedure_Promise_Class {
|
|
|
8
8
|
__start(on_success, on_exception) {
|
|
9
9
|
this.executer.execute(on_success, on_exception);
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
map_error(handle_error) {
|
|
12
12
|
return new Unguaranteed_Procedure_Promise_Class({
|
|
13
13
|
'execute': (on_success, on_exception) => {
|
|
14
14
|
this.executer.execute(on_success, (error) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type Unguaranteed_Procedure<Parameters, Error, Resources> = ($: Parameters, $r: Resources) => Unguaranteed_Procedure_Promise<Error>;
|
|
2
2
|
export type Unguaranteed_Procedure_Promise<Error> = {
|
|
3
3
|
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
|
4
|
-
|
|
4
|
+
map_error<NE>(handle_error: (error: Error) => NE): Unguaranteed_Procedure_Promise<NE>;
|
|
5
5
|
};
|