Skip to content

Commit 6bde68f

Browse files
d4n1elchenstevengj
authored andcommitted
Move flush_all() out from @async (JuliaLang#693) (JuliaLang#711)
* Move flush_all() out from @async * no need for async around idle message
1 parent 88e47e7 commit 6bde68f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/eventloop.jl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,8 @@ function eventloop(socket)
1717
send_ipython(publish[], msg_pub(execute_msg, "error", content))
1818
end
1919
finally
20-
# @async no longer implicitly captures local variables (see PR #618)
21-
let msg = msg
22-
@async begin
23-
flush_all()
24-
send_status("idle", msg)
25-
end
26-
end
20+
flush_all()
21+
send_status("idle", msg)
2722
end
2823
end
2924
catch e

0 commit comments

Comments
 (0)