Closed anmonteiro closed 5 years ago
currently Lambda_runtime.start is: (Yojson.Safe.json -> Context.t -> (Yojson.Safe.json, string) result) -> unit
Lambda_runtime.start
(Yojson.Safe.json -> Context.t -> (Yojson.Safe.json, string) result) -> unit
I think we might need to provide a Lambda_runtime.start_async or start_io that is:
Lambda_runtime.start_async
start_io
(Yojson.Safe.json -> Context.t -> (Yojson.Safe.json, string) result Io.t) -> unit
where Io.t is either Lwt.t or Async.Deferred.t
Io.t
Lwt.t
Async.Deferred.t
to allow for async handlers.
currently
Lambda_runtime.start
is:(Yojson.Safe.json -> Context.t -> (Yojson.Safe.json, string) result) -> unit
I think we might need to provide a
Lambda_runtime.start_async
orstart_io
that is:(Yojson.Safe.json -> Context.t -> (Yojson.Safe.json, string) result Io.t) -> unit
where
Io.t
is eitherLwt.t
orAsync.Deferred.t
to allow for async handlers.