• API reference
  • Blog
  • Changelog
  • Follow us on GitHubFollow us on XJoin our Discord server
  • API reference
  • Blog
  • GitHub
  • Releases
  • Getting started

    • Overview
  • Library

    • Getting started
    • Array
    • Result
    • Dependency injection
    • Resource management
    • Type
    • Task
    • Conventions
    • Testing
  • Local-first

    • Getting started
    • Playgrounds
    • Examples
    • Owners
    • Schema
    • Relay
    • Time travel
    • Indexes
    • Protocol
    • Privacy
    • FAQ
  • Other

    • Comparison
    • Showcase
    • Changelog

API reference › @evolu/common › Task › NextTask

type NextTask<T, E, DoneValue, Deps> = Task<T, E | Done<DoneValue>, Deps>;

Defined in: packages/common/src/Task.ts:902

A Task that can return a value, signal done, or return a Result error.

Use for pull-based protocols where Done<D> signals normal completion rather than an error.

Markdown for LLMs

© 2026 Evolu

Follow us on GitHubFollow us on XJoin our Discord server