import { Task } from '@ts-task/task' ; /************************************************
 * Tasks with an unary tuple
 ***********************************************/ const t = Task . resolve ( 9 ) ; Task . all ( [ t ] ) ; /************************************************
 * Tasks with a n-ary tuple
 ***********************************************/ const t1 = Task . resolve ( 9 ) ; const t2 = Task . resolve < string , string > ( 'foo' ) ; const t3 = Task . resolve < boolean , Error > ( true ) ; Task . all ( [ t1 , t2 , t3 ] ) ; /************************************************
 * Tasks with an array (not tuple)
 ***********************************************/ const arrOfTasks = [ 1 , 2 , 3 ] . map ( x => Task . resolve ( x ) ) ; Task . all ( arrOfTasks ) ;