Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/easyts/mod.ts>Defer#defer

js library written with ts, use select and chan like golang in js.
Latest
method Defer.prototype.defer
import { Defer } from "https://deno.land/x/easyts@0.1.3/mod.ts";

Parameters

f: () => any | Promise<any>

Parameters

f: (v1: T1) => any | Promise<any>
v1: T1

Parameters

f: (v1: T1, v2: T2) => any | Promise<any>
v1: T1
v2: T2

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4

Type Parameters

T1
T2
T3
T4
T5

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5

Type Parameters

T1
T2
T3
T4
T5
T6

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6

Type Parameters

T1
T2
T3
T4
T5
T6
T7

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
v16: T16,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15
v16: T16

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
T17

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
v16: T16,
v17: T17,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15
v16: T16
v17: T17

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
T17
T18

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
v16: T16,
v17: T17,
v18: T18,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15
v16: T16
v17: T17
v18: T18

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
T17
T18
T19

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
v16: T16,
v17: T17,
v18: T18,
v19: T19,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15
v16: T16
v17: T17
v18: T18
v19: T19

Type Parameters

T1
T2
T3
T4
T5
T6
T7
T8
T9
T10
T11
T12
T13
T14
T15
T16
T17
T18
T19
T20

Parameters

f: (
v1: T1,
v2: T2,
v3: T3,
v4: T4,
v5: T5,
v6: T6,
v7: T7,
v8: T8,
v9: T9,
v10: T10,
v11: T11,
v12: T12,
v13: T13,
v14: T14,
v15: T15,
v16: T16,
v17: T17,
v18: T18,
v19: T19,
v20: T20,
) => any | Promise<any>
v1: T1
v2: T2
v3: T3
v4: T4
v5: T5
v6: T6
v7: T7
v8: T8
v9: T9
v10: T10
v11: T11
v12: T12
v13: T13
v14: T14
v15: T15
v16: T16
v17: T17
v18: T18
v19: T19
v20: T20