blob: 3859ad4e29766808e4d1962ba9180579047dc71c (
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
37
38
39
|
[create]
description = 'Creates a new coroutine.'
[isyieldable]
description = 'Returns true when the running coroutine can yield.'
[kill]
description = 'Kills coroutine `co` , closing all its pending to-be-closed variables and putting the coroutine in a dead state.'
[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.'
``````````
name = 'status'
enum = 'suspended'
description = 'Is suspended or not started.'
``````````
name = 'status'
enum = 'normal'
description = 'Is active but not running.'
``````````
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.'
|