When will coroutines switch execution?
arafath-mk opened this issue · 4 comments
arafath-mk commented
In Go goroutines switch execution on blocking IO operations like file rated or write to a file in hard disk. Does the libmill have the similar behavior?
sustrik commented
Yes, but you must used the blocking functions provided by libmill library (i.e. msleep() instead of sleep() etc.)
arafath-mk commented
Thanks sustrik.
There are examples for network IO in libmill. Could you please give me an example for file IO?
arafath-mk commented
Thanks.