import { Disposable , Future } from './Future' ; import { curry3 } from '@typed/functions' ; name export const fork = curry3 ( forkFuture ) ; function forkFuture < A , B > ( left , right , future ) { return future . fork ( left , right ) ; } export interface ForkFn { < A , B > ( left , right , future ) : Disposable ; < A , B > ( left ) : ( right : ( value : B ) => any , future : Future < A , B > ) => Disposable ; < A , B > ( left , right ) : ( future : Future < A , B > ) => Disposable ; < A , B > ( left ) : ( right : ( value : B ) => any ) => ( future : Future < A , B > ) => Disposable ; }