Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame^] | 1 | SYNOPSIS |
| 2 | mixed call_coroutine(coroutine cr, mixed value = 0) |
| 3 | |
| 4 | DESCRIPTION |
| 5 | Continues execution of the coroutine. |
| 6 | |
| 7 | The value will be passed as the result of its last suspension |
| 8 | point (the previous yield() call of its execution). If the |
| 9 | coroutine is at its start, the value will be discarded. |
| 10 | |
| 11 | The coroutine may pass execution to other coroutines through |
| 12 | await() and yield() calls. A yield() call without a coroutine, |
| 13 | a return statement or simply the end of the statement block |
| 14 | will return to the caller. |
| 15 | |
| 16 | The result of the call will be the value given to the yield() |
| 17 | or return statement. |
| 18 | |
| 19 | HISTORY |
| 20 | Coroutines were introduced in LDMud 3.6.5. |
| 21 | |
| 22 | SEE ALSO |
| 23 | coroutines(LPC), this_coroutine(E) |