module Command:sig
..end
include Core.Std.Command
val async_basic : summary:string ->
?readme:(unit -> string) ->
('a, unit -> unit Import.Deferred.t) Spec.t -> 'a -> 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.