of

inline fun <R> of(action: () -> R): Either<Throwable, R>

Runs provided action and captures the result in Either. Use to capture result of given potentially throwing code.