I'm creating a simple program that uses the eventlet greenthreads and I cannot understand their behavior. From the following example it seems to me that the thread only runs when I call the .wait() method. I read the documentation and I can't find any method similar to the "start" method provided by the threading module. Is there any similar method to force the thread to run just after creation (spawn call)?
Python 2.7.6 (default, Oct 26 2016, 20:30:19)
[GCC 4.8.4] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import eventlet
>>> def test():
... print("this is a test")
...
>>> gth = eventlet.spawn(test)
>>>
>>> gth.wait()
this is a test
>>>