package grpc-lwt
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type 'a handler = H2.Body.Writer.t -> H2.Body.Reader.t Lwt.t -> 'a Lwt.t
val bidirectional_streaming :
f:((string option -> unit) -> string Lwt_stream.t -> 'a Lwt.t) ->
'a handler
bidirectional_streaming ~f write read
sets up the sending and receiving logic using write
and read
, then calls f
with a push function for requests and a stream of responses.
client_streaming ~f write read
sets up the sending and receiving logic using write
and read
, then calls f
with a push function for requests and promise for the response.
val server_streaming :
f:(string Lwt_stream.t -> 'a Lwt.t) ->
string ->
'a handler
server_streaming ~f enc write read
sets up the sending and receiving logic using write
and read
, then sends enc
and calls f
with a stream of responses.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>