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