sustrik/libmill

When will coroutines switch execution?

arafath-mk opened this issue · 4 comments

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?

Yes, but you must used the blocking functions provided by libmill library (i.e. msleep() instead of sleep() etc.)

Thanks sustrik.
There are examples for network IO in libmill. Could you please give me an example for file IO?

Thanks.