UNPKG

@most/scheduler

Version:

Reactive programming with lean, functions-only, curried, tree-shakeable API

8 lines (7 loc) 322 B
/** @license MIT License (c) copyright 2010-2017 original author or authors */ export interface DeferrableTask<E, A> { run(): A; error(e: Error): E; } export declare const defer: <E, A>(task: DeferrableTask<E, A>) => Promise<E | A>; export declare function runTask<E, A>(task: DeferrableTask<E, A>): E | A;