Skip to content

Function.safeTryAsync

GitHub Actions edited this page May 22, 2025 · 28 revisions

resultar / safeTryAsync

Function: safeTryAsync()

safeTryAsync<T, E>(body): ResultAsync<T, E>

Defined in: result-async.ts:457

Type Parameters

T

T

E

E

Parameters

body

() => AsyncGenerator<Result<never, E>, Result<T, E>>

Returns

ResultAsync<T, E>

Deprecated

Use safeTry instead.

See

safeTry

This will be removed in the next major version.

Clone this wiki locally