mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 11:40:11 +03:00
spider: make handle-stop-thread into a get by instead of a got by to fix failing +on-load
This commit is contained in:
parent
a9d6811299
commit
cfbfa59100
@ -392,17 +392,20 @@
|
|||||||
++ handle-stop-thread
|
++ handle-stop-thread
|
||||||
|= [=tid nice=?]
|
|= [=tid nice=?]
|
||||||
^- (quip card ^state)
|
^- (quip card ^state)
|
||||||
=/ =yarn (~(got by tid.state) tid)
|
=/ yarn=(unit yarn) (~(get by tid.state) tid)
|
||||||
?: (has-yarn running.state yarn)
|
?~ yarn
|
||||||
|
~& %stopping-nonexistent-thread
|
||||||
|
[~ state]
|
||||||
|
?: (has-yarn running.state u.yarn)
|
||||||
?: nice
|
?: nice
|
||||||
(thread-done yarn *vase)
|
(thread-done u.yarn *vase)
|
||||||
(thread-fail yarn %cancelled ~)
|
(thread-fail u.yarn %cancelled ~)
|
||||||
?: (~(has by starting.state) yarn)
|
?: (~(has by starting.state) u.yarn)
|
||||||
(thread-fail-not-running tid %stopped-before-started ~)
|
(thread-fail-not-running tid %stopped-before-started ~)
|
||||||
~& [%thread-not-started yarn]
|
~& [%thread-not-started u.yarn]
|
||||||
?: nice
|
?: nice
|
||||||
(thread-done yarn *vase)
|
(thread-done u.yarn *vase)
|
||||||
(thread-fail yarn %cancelled ~)
|
(thread-fail u.yarn %cancelled ~)
|
||||||
::
|
::
|
||||||
++ take-input
|
++ take-input
|
||||||
|= [=yarn input=(unit input:strand)]
|
|= [=yarn input=(unit input:strand)]
|
||||||
|
Loading…
Reference in New Issue
Block a user