![]() |
![]()
| ![]() |
![]()
NAMEyield - yields CPU to other coroutines SYNOPSIS
DESCRIPTIONBy calling this function, you give other coroutines a chance to run. You should consider using yield when doing lengthy computations which don't have natural coroutine switching points such as socket or channel operations or msleep. RETURN VALUEIn case of success the function returns 0. In case of error it returns -1 and sets errno to one of the values below. ERRORS
EXAMPLE
SEE ALSObundle(3) bundle_go(3) bundle_go_mem(3) bundle_mem(3) bundle_wait(3) go(3) go_mem(3)
|