import { reject, resolve, fork } from 'fluture'
import { future } from 'fp-ts-fluture/lib/Future'
import { array } from 'fp-ts/lib/Array'
array
.sequence(future)([resolve(1), reject('oops')])
.pipe(fork(e => console.error('Error:', e))
(console.log), // => "Error: oops"
)
array
.sequence(future)([resolve(1), resolve(2)])
.pipe(fork(console.error)
(console.log), // => [1, 2]
)
-
Notifications
You must be signed in to change notification settings - Fork 5
fp-ts bindings for Fluture
License
gcanti/fp-ts-fluture
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
fp-ts bindings for Fluture
Topics
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published