Discussion:
[gevent] share data with gevent
Rita Morgan
2018-01-30 10:50:19 UTC
Permalink
looking at code, https://gist.github.com/czardoz/2e5bf13a233ae28fda9f, i
was wondering if there was a way to share information from background() to
say "/foo" route.
Does gevent provide any mechanism for generating data, similar to
background, and then I retrieve data safely? safely, meaning in an atomic
manner? I want to avoid using global variables.'
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ddorian43
2018-02-09 11:59:26 UTC
Permalink
Make them both classes/objects and link them with reference ? (on __init__
or whatever)
Post by Rita Morgan
looking at code, https://gist.github.com/czardoz/2e5bf13a233ae28fda9f, i
was wondering if there was a way to share information from background() to
say "/foo" route.
Does gevent provide any mechanism for generating data, similar to
background, and then I retrieve data safely? safely, meaning in an atomic
manner? I want to avoid using global variables.'
--
You received this message because you are subscribed to the Google Groups "gevent: coroutine-based Python network library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gevent+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...