Skip to content

#spawn decorator (fire-and-forget) #128

Description

@mcclowes

Fire-and-forget execution:

let logEvent = (event) ->
  sendToAnalytics(event)
#spawn

-- Returns immediately, doesn't block
logEvent({ type: \"click\" })

Needs to decide: error handling for unhandled rejections, interaction with structured concurrency (issue #126), and whether spawned functions should still be awaitable via a returned handle.

Migrated from TODO.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions