Skip to main content
Version: 8.9 (unreleased)

Function: withTimeoutTE()

Technical Preview

The Functional Programming API is a technical preview. Its surface may change in future releases without following semver.

function withTimeoutTE<E, A>(task, ms, onTimeout?): TaskEither<E, A>;

Defined in: fp-ts.ts:155

Type Parameters

E

E

A

A

Parameters

task

TaskEither<E, A>

ms

number

onTimeout?

() => E

Returns

TaskEither<E, A>