The feature is called "dthread" or "duda-thread" which aims to expose Channels and generic co-routines functionalities, you can check the following relevant links:
a. The co-routine implementation:
https://github.com/monkey/duda/blob/master/src/duda_dthread....
it does not need mutex or anything similar, short code but a lot of thinking behind it.
b. Example: web service to calculate Fibonacci using channels:
https://github.com/monkey/duda-examples/blob/master/080_dthr...
the whole work will be available on our next stable release, if someone want to give it a try, just drop us a line.
[0] http://blog-swpd.rhcloud.com
[2] http://www.google-melange.com
[3] http://duda.io