Then use tasks. But nothing else runs unless you yield...

On Friday, April 4, 2014, Paul Tagliamonte <[email protected]> wrote:

> On Fri, Apr 04, 2014 at 08:56:49PM -0700, Guido van Rossum wrote:
> >    That's what yield from is for.
>
> Hey Guido,
>
> Yeah, but I'd rather the 'short' (not actually *that* short) routines to
> run in parallel -- if I yield from each, won't that block the root
> coroutine until the yielded coroutine will complete?
>
> I can run two 'long' coroutines, I'm wondering how to shuffle some
> short-er living ones in there too
>
> -Paul
>
> --
> #define sizeof(x) rand()
> </paul>
> :wq
>


-- 
--Guido van Rossum (on iPad)

Reply via email to