main
js 22 lines 643 Bytes
Raw
1 /**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * @flow
8 */
9
10 import type {AsyncSequence} from './ReactFlightAsyncSequence';
11
12 // Exported for runtimes that don't support Promise instrumentation for async debugging.
13 export function initAsyncDebugInfo(): void {}
14 export function markAsyncSequenceRootTask(): void {}
15 export function getCurrentAsyncSequence(): null | AsyncSequence {
16 return null;
17 }
18 export function getAsyncSequenceFromPromise(
19 promise: any,
20 ): null | AsyncSequence {
21 return null;
22 }