Hi, I'm wondering how POE internally handles
1. functions that may take some time (e.g., a long loop)
2. functions that wait on IO (either just waiting, or say reading a huge
file)
Does it treat them the same way, by allocating short time slices?

I was reading a little bit about Python/Twisted, it has a concept of
Deferred,
roughly the above two types of methods will return right away, a Deffered
object, then
one registers call backs when the real data comes in. One thing I don't like
about
it (as little as I know about it) is that as a programmer, I have to decide
this
when I code the function, and when I call it. I'm wondering how this is
deferrent
from the way POE does, and advantages/disadvantages.

Thanks.

Z.

Reply via email to