async_js
A small library that provide Async support for JavaScript platforms
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Id : sig ... end
module Metadata : sig ... end
val create :
?client_pushes_back:unit ->
name:string ->
version:int ->
bin_query:'query Bin_prot.Type_class.t ->
bin_state:'state Bin_prot.Type_class.t ->
bin_update:'update Bin_prot.Type_class.t ->
bin_error:'error Bin_prot.Type_class.t ->
unit ->
( 'query, 'state, 'update, 'error ) t
val bin_query : ( 'query, _, _, _ ) t -> 'query Bin_prot.Type_class.t
val bin_state : ( _, 'state, _, _ ) t -> 'state Bin_prot.Type_class.t
val bin_update : ( _, _, 'update, _ ) t -> 'update Bin_prot.Type_class.t
val bin_error : ( _, _, _, 'error ) t -> 'error Bin_prot.Type_class.t
val implement :
?on_exception:On_exception.t ->
( 'query, 'state, 'update, 'error ) t ->
( 'connection_state ->
'query ->
( 'state * 'update Async_kernel.Pipe.Reader.t, 'error ) Core.Result.t
Async_kernel.Deferred.t ) ->
'connection_state Implementation.t
val dispatch :
( 'query, 'state, 'update, 'error ) t ->
{Connection}2.t ->
'query ->
( 'state * 'update Async_kernel.Pipe.Reader.t * Metadata.t, 'error )
Core.Result.t
Core.Or_error.t
Async_kernel.Deferred.t
val close_reason : Metadata.t -> Pipe_close_reason.t Async_kernel.Deferred.t
val client_pushes_back : ( _, _, _, _ ) t -> bool
val name : ( _, _, _, _ ) t -> string
val version : ( _, _, _, _ ) t -> int
val description : ( _, _, _, _ ) t -> Description.t
val query_type_id : ( 'query, _, _, _ ) t -> 'query Core.Type_equal.Id.t
val state_type_id : ( _, 'state, _, _ ) t -> 'state Core.Type_equal.Id.t
val update_type_id : ( _, _, 'update, _ ) t -> 'update Core.Type_equal.Id.t
val error_type_id : ( _, _, _, 'error ) t -> 'error Core.Type_equal.Id.t