ConstOptionalparams: TaskParamsReadonly_tag: stringRun an async operation with explicit try/catch/finally semantics Returns a raw Promise that can interact with traditional Promise-based code
Run an async operation with progress tracking capabilities Returns a Promise and provides progress updates via callback
Run a synchronous operation with explicit try/catch/finally semantics Returns a TaskOutcome for functional error handling
Create a task that can be cancelled
Create a cancellation token source
Create a failed Task result (alias for fail) Preferred for new code
Create a failed Task result
Format the error chain as a string with the option to include task details
Create TaskOutcome from Either
Reconstruct a TaskOutcome from a JSON envelope emitted by serialize().toJSON()
or instance toJSON(). Verifies @functype === "Task" and dispatches on _tag.
Err reconstruction goes through deserializeError so name/message/stack/cause
survive; the resulting Throwable carries the deserialized Error as its underlying
error (subclass identity does NOT round-trip — see error-envelope.ts).
Convert a Node.js style callback function to a Task-compatible function Node.js callbacks typically have the signature (error, result) => void
Convert a Promise-returning function to a Task-compatible function
Create TaskOutcome from Try
Extract the error chain from a Throwable error Returns an array of errors from outermost to innermost
Create a successful Task result (alias for success) Preferred for new code
Race multiple tasks and return the result of the first one to complete Optionally specify a timeout after which the race will fail
Create a successful Task result
Convert a Task result to a Promise
Creates a task with progress tracking
Task adapter for bridging promise-based code with functional error handling patterns