Std.Process.withStarted
1 declaration
fn
withStarted: &Std.Process.Launch -> fn(&Std.Process.Started) -> Result[T, Str] -> Result[T, Str]This is a callable function.
What it does
An action given a started program that is stopped when the action returns.
Stopped whether the action succeeded or failed and whether or not the
program had already finished, so a program cannot outlive the code that
started it. The action's own answer is what is returned.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
- & borrows a value for this call instead of moving or copying it.
- Names inside [ ] are type arguments, such as the item type held by a collection.
- Result makes success and recoverable failure part of the function's type.
