Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions calcit.cirru
Original file line number Diff line number Diff line change
Expand Up @@ -2132,7 +2132,7 @@
'ChromeDisconnectEventHost $ %{} 'CodeEntry (:doc |)
:code $ quote $ deftrait ChromeDisconnectEventHost
.add-listener! $ Fn app.main/ChromeDisconnectEventHost
Fn Dynamic $ -> Unit
Fn app.main/ChromePortHost $ -> Unit
-> Unit
:examples $ []
:ffi $ {} (:backend :js) (:kind :external-object) (:target :browser)
Expand Down Expand Up @@ -2170,7 +2170,11 @@
when (js-present? on-disconnect)
let
listener $ assert-type on-disconnect ChromeDisconnectEventHost
listener .add-listener! $ fn (event) (println |Worker-disconnected-retrying) (js/setTimeout connect-to-worker! 500) &unit
listener .add-listener! $ fn (_port)
hint-fn $ Fn ChromePortHost $ -> Unit
println |Worker-disconnected-retrying
js/setTimeout connect-to-worker! 500
, &unit
, &unit
:examples $ []
:schema $ quote $ Fn (-> Unit) (:features :js-ffi)
Expand Down
Loading