(action)
| 100 | ); |
| 101 | } |
| 102 | function put(action) { |
| 103 | const { type } = action; |
| 104 | assertAction(type, 'sagaEffects.put'); |
| 105 | return sagaEffects.put({ ...action, type: prefixType(type, model) }); |
| 106 | } |
| 107 | |
| 108 | // The operator `put` doesn't block waiting the returned promise to resolve. |
| 109 | // Using `put.resolve` will wait until the promsie resolve/reject before resuming. |