MCPcopy Create free account
hub / github.com/StackStorm/st2 / wait

Function wait

st2common/st2common/util/concurrency.py:98–104  ·  view source on GitHub ↗
(green_thread, *args, **kwargs)

Source from the content-addressed store, hash-verified

96
97
98def wait(green_thread, *args, **kwargs):
99 if CONCURRENCY_LIBRARY == "eventlet":
100 return green_thread.wait(*args, **kwargs)
101 elif CONCURRENCY_LIBRARY == "gevent":
102 return green_thread.join(*args, **kwargs)
103 else:
104 raise ValueError("Unsupported concurrency library")
105
106
107def cancel(green_thread, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

waitMethod · 0.45

Tested by

no test coverage detected