Skip to content

Create Migration Guide #1018

@cowboyd

Description

@cowboyd
  • differences in Callable()
    • WAS
      • promise, constant, operation, generation function, async function, sync function
      • encapsulate tasks by creating a new scope
      • created a new task / iterator (not directly part of API, just a side-effect)
      • created an error boundary
    • IS
      • operation function, asynchronous function, sync function i.e. call a function. Only pass functions to call (nothing else)
        • promise, use until() helper yield* call(promise) -> yield* until(promise)
        • constant, use constant() helper yield* call(5) -> yield* constant(5)
        • operation, use the operation: yield* call(operation) -> yield* operation
        • use lift for an option to call(constant)
      • use scoped() helper for encapsulating tasks and creating error boundary.
      • does not create a new iterator.
  • differences in action()
    • an action callback is always synchronous
    • old API has been deprecated, if you fix all deprecations then it will work in v4
  • explain task priority
  • add more context to lift, see discord thread

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions