Module Eio_mock.Action
Actions that can be performed by mock handlers.
type 'a t = [ | `Return of 'a(*Immediately return a value
*)| `Raise of exn(*Raise an exception
*)| `Await of 'a Eio.Promise.or_exn(*Wait for a promise to resolve
*)| `Yield_then of 'a Eio_mock.Action.t| `Run of unit -> 'a(*Run any code you like.
*)
]val run : 'a Eio_mock.Action.t -> 'arun t performs action t and returns the result.
val map : ('a -> 'b) -> 'a Eio_mock.Action.t -> 'b Eio_mock.Action.trun (map f t) = f (run t).