react-flow-z 1.0.2 → 1.0.3
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.
|
@@ -19,12 +19,13 @@ export type TypedFlow<I, O, Context> = Flow<Context> & {
|
|
|
19
19
|
backoff?: "linear" | "exponential";
|
|
20
20
|
}): TypedFlow<I, O, Context>;
|
|
21
21
|
poll(ms: number, options?: {
|
|
22
|
-
until?: (v:
|
|
22
|
+
until?: (v: O) => boolean;
|
|
23
23
|
max?: number;
|
|
24
24
|
}): TypedFlow<I, O, Context>;
|
|
25
25
|
timeout(ms: number): TypedFlow<I, O, Context>;
|
|
26
26
|
catch(fn: (e: any, context: Context) => O | Promise<O>): TypedFlow<I, O, Context>;
|
|
27
27
|
take(n: number): TypedFlow<I, O, Context>;
|
|
28
|
+
finally(fn: () => void): TypedFlow<I, O, Context>;
|
|
28
29
|
};
|
|
29
30
|
export declare class Flow<Context = {}> {
|
|
30
31
|
private readonly ctx;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-flow-z",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "A lightweight async flow runtime for orchestrating side effects with explicit control over cancellation, debounce, throttling, and execution order.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Delpi.Kye",
|