UNPKG
@typed/future
Version:
latest (11.6.0)
11.6.0
11.5.4
11.5.3
11.5.2
11.5.1
11.5.0
11.4.1
11.4.0
11.3.0
11.2.1
11.2.0
11.1.1
11.1.0
11.0.0
10.2.0
10.1.0
10.0.0
9.0.1
9.0.0
8.1.0
8.0.0
7.0.0
6.3.0
6.2.0
6.1.0
6.0.2
6.0.1
6.0.0
5.0.0
4.0.0
3.2.0
3.1.0
3.0.0
2.1.0
2.0.0
1.0.1
1.0.0
Asynchronous Future Values
github.com/TylorS/typed-prelude
TylorS/typed-prelude
@typed/future
/
esm
/
fork.js
8 lines
•
274 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
import
{ unpack }
from
'@typed/either'
;
import
{ runPure }
from
'@typed/env'
;
import
{ curry }
from
'@typed/lambda'
;
export
const
fork =
curry
(__fork);
function
__fork
(
left, right, future
) {
return
runPure
(
unpack
(left, right), future); }
//# sourceMappingURL=fork.js.map