blob: dca0f5a406a77070e9215a44a4dc615682ad68f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
[create]
description = 'Creates a new coroutine.'
[isyieldable]
description = 'Returns true when the running coroutine can yield.'
[resume]
description = 'Starts or continues the execution of coroutine `co`.'
[running]
description = 'Returns the running coroutine plus a boolean, true when the running coroutine is the main one.'
[status]
description = 'Returns the status of coroutine `co`.'
[[.enums]]
name = 'status'
enum = 'running'
description = 'Is running.'
[[.enums]]
name = 'status'
enum = 'suspended'
description = 'Is suspended or not started.'
[[.enums]]
name = 'status'
enum = 'normal'
description = 'Is active but not running.'
[[.enums]]
name = 'status'
enum = 'dead'
description = 'Has finished or stopped with an error.'
[wrap]
description = 'Creates a new coroutine.'
[yield]
description = 'Suspends the execution of the calling coroutine.'
|