python-greenlet / greenlet

Lightweight in-process concurrent programming
Other
1.63k stars 247 forks source link

Possibility of Forking/Duplicating a greenlet thread #408

Open tastelessjolt opened 3 months ago

tastelessjolt commented 3 months ago

Hello there,

Is it possible to make a fork/duplicate of the paused greenlet thread at a certain point and have two copies of the thread with all the same state/stack but independent threads of execution?

Thanks in advance!