/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ package com.facebook.react.runtime.internal.bolts /** * A function to be called after a task completes. * *

If you wish to have the Task from a Continuation that does not return a Task be cancelled then * throw a [java.util.concurrent.CancellationException] from the Continuation. * * @see Task */ internal interface Continuation { @Throws(Exception::class) fun then(task: Task): TContinuationResult? }