update
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ julia> stop_agent(agent)
|
|||||||
function stop_agent(agent::yiemAgent)
|
function stop_agent(agent::yiemAgent)
|
||||||
put!(agent.inputChannel, :shutdown)
|
put!(agent.inputChannel, :shutdown)
|
||||||
try
|
try
|
||||||
fetch(agent._task)
|
fetch(agent._agent_loop)
|
||||||
catch e
|
catch e
|
||||||
if e isa TaskFailedException
|
if e isa TaskFailedException
|
||||||
rethrow(e)
|
rethrow(e)
|
||||||
|
|||||||
Reference in New Issue
Block a user