Ui_effect_of_deferredval of_deferred_fun :
('query -> 'response Async_kernel.Deferred.t) ->
'query ->
'response Ui_effect.tof_deferred_fun is a way to convert from a deferred-returning function to an effect-returning function. This function is commonly used to wrap RPC calls.
val of_deferred_thunk :
(Base.unit -> 'response Async_kernel.Deferred.t) ->
'response Ui_effect.tLike of_deferred_fun but with a pre-applied unit query. Side-effects in the function will be run every time that the resulting effect is scheduled
val of_deferred_fun' :
('query ->
on_exn:(Base.Exn.t -> Base.unit) ->
'response Async_kernel.Deferred.t) ->
'query ->
'response Ui_effect.tLike of_deferred_fun but with an extra on_exn parameter that can be passed into calls to Expert.handle.
val of_deferred_thunk' :
(Base.unit ->
on_exn:(Base.Exn.t -> Base.unit) ->
'response Async_kernel.Deferred.t) ->
'response Ui_effect.tLike of_deferred_thunk but with an extra on_exn parameter that can be passed into calls to Expert.handle.
val expert_handle_as_deferred : 'a Ui_effect.t -> 'a Async_kernel.Deferred.texpert_handle_as_deferred will return a function that schedules the effect, and returns the result as a Deferred.t.