Uneventful
    Preparing search index...
    • Start a new task from an activity, as a child of the currentContext()

      start(activity) is roughly shorthand for calling starting(activity).task(), or starting().exec(activity).task(). That is, it creates a new Work of the appropriate type, .exec()s the activity in it, and returns the Task that will provide the work's result.

      However, unlike with starting(), if the activity is an Uneventful-supplied Task, the passed-in task is returned unchanged rather than starting a new task.

      If the activity is a function and it throws a synchronous error before start() returns, the new task will be canceled and the error rethrown.

      Type Parameters

      • T = never

        The type of result the task will eventually produce. Defaults to never if not given, meaning that the task will never end itself (except via an error), and will only end when it is canceled or one of its parent contexts ends or resets.

      Parameters

      Returns Task<T>