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
Copy file name to clipboardExpand all lines: docs/Control/Coroutine/Aff.md
+10-1Lines changed: 10 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ produce :: forall a r eff. ((Either a r -> Eff (avar :: AVAR | eff) Unit) -> Eff
14
14
15
15
Create a `Producer` using an asynchronous callback.
16
16
17
-
The callback should provide zero or more values of type `a`, which will be
17
+
The callback should provide zero or more values of type `a`, which will be
18
18
emitted by the `Producer`, terminated by an optional value of type `r`. No values
19
19
should be provided after a value of type `r` has been provided.
20
20
@@ -28,4 +28,13 @@ produce \emit -> do
28
28
emit (Right "finished")
29
29
```
30
30
31
+
#### `produce'`
32
+
33
+
```purescript
34
+
produce' :: forall a r m eff. (Monad m, MonadAff (avar :: AVAR | eff) m) => ((Either a r -> Eff (avar :: AVAR | eff) Unit) -> Eff (avar :: AVAR | eff) Unit) -> Producer a m r
35
+
```
36
+
37
+
A version of `produce` that creates a `Producer` with an underlying
0 commit comments