How do you mean? Control-flow-wise your program looks exactly the same as if
you were using blocking IO and threads. Rust helps a lot in stopping you from
being able to shoot yourself in the foot here: No piece of data can be accessed
from multiple coroutines at once unless they all have read-only access.

On Mon, Mar 21, 2016 at 06:23:48PM +0100, Jeff Burdges wrote:
> 
> I'd like to get Christian's opinions on that.  I'm vaguely worried that
> coroutines leave you understanding the actual flow less well.  Although
> maybe that's only a problem when doing lower level stuff that mio
> already handles.  
> 
> 
> 
> On Mon, 2016-03-21 at 12:47 -0400, Andrew Cann wrote:
> > Another option would be to use mioco. Mioco let's you write 
> > blocking/threaded
> > style code but underneath uses green threads and non-blocking IO. This is
> > similar to what you'd see in Go.
> 
> 


Attachment: signature.asc
Description: Digital signature

_______________________________________________
GNUnet-developers mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnunet-developers

Reply via email to