API reference › @evolu/common › Task › unabortableMask
function unabortableMask<T, E, D>(
fn: (
restore: <T2, E2>(task: Task<T2, E2, D>) => Task<T2, E2, D>,
) => Task<T, E, D>,
): Task<T, E, D>;
Defined in: packages/common/src/Task.ts:1554
Like unabortable, but provides restore to restore abortability for
specific tasks.
Tasks inherit abort masking from their parent. This means:
- Tasks run inside
unabortableMaskare unabortable by default - Tasks wrapped with
restore()restore the previous abortability