module Command: Command
include Core.Command
val async_basic : summary:string ->
?readme:(unit -> string) ->
('a, unit -> unit Import.Deferred.t) Core.Command.Spec.t ->
'a -> Core.Command.t
async_basic
is exactly the same as Core.Command.basic
, except that the function it
wraps returns unit Deferred.t
, instead of unit
. async_basic
will also start the
Async scheduler before the wrapped function is run, and will stop the scheduler when
the wrapped function returns.