You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`interceptor` - function to remove from list of action handlers
56
+
42
57
### perform(action, ...args, done) arguments
43
58
44
59
`action` - name of the action
@@ -49,11 +64,12 @@ actor.perform('load:plugins', config, function (config, allowAfter) {
49
64
50
65
### action started
51
66
52
-
1. The actor will start performing an "action" with `...args` for arguments.
67
+
1. The actor will start performing an "action" with `...args`.
53
68
2. At the end of the arguments to the event will be added a `next` function.
69
+
2.1. The `next` function is used for passing state via arguments and accepts an error first argument in order to fail fast.
54
70
3. Each before interceptors will be fired in order after the previous fires the `next` function.
55
71
4. After all interceptors have been fired the `done` function will fire with the arguments passed to the next function and an opt-in function to allow after interceptors.
56
-
5. If the `done` function optsin to after interceptors the after interceptors will be fired in order after the previous fires the `next` function.
72
+
5. If the `done` function opts-in to after interceptors the after interceptors will be fired in order after the previous fires the `next` function.
0 commit comments