import { Future } from './Future' ; name export function toPromise < A > ( future ) ; export function toPromise < A > ( future ) ; export function toPromise < A > ( future ) { return new Promise < A > ( ( resolve , reject ) => future . fork ( reject , resolve ) ) ; }