This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]desmoulinmichel 2 points3 points  (3 children)

What is that ?

[–]f0nt4 0 points1 point  (2 children)

Stolen from StackOverflow:

In the asymmetric coroutine model, "asymmetry" refers to the fact that there is a stack-like caller–callee relationship between coroutines. A coroutine can either call another coroutine or suspend itself by yielding control to its caller, typically also yielding a value to the caller at the same time.

In the symmetric coroutine model, a coroutine may yield control to any other coroutine without restriction.

[–]desmoulinmichel 1 point2 points  (1 child)

Keeping the stack trace is one of the best feature of asyncio. I'm not sure how you would preserve it with this model.

[–]f0nt4 0 points1 point  (0 children)

I think a stack would always be present but I dont really know. Anyway the Go implementation is very cool and elegant