Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dask/dask
/ interrupt_main
Function
interrupt_main
dask/tests/test_threaded.py:170–171 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
168
main_thread = threading.get_ident()
169
170
def
interrupt_main() -> None:
171
signal.pthread_kill(main_thread, signal.SIGINT)
172
173
barrier = threading.Barrier(20)
if
use_barrier
else
None
174
tasks_can_end = threading.Event()
Callers
1
interrupt
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected