• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# SendableContext
2
3SendableContext complies with the [Sendable protocol](../../arkts-utils/arkts-sendable.md#sendable-protocol) and inherits from [lang.ISendable](../apis-arkts/js-apis-arkts-lang.md#langisendable).
4
5> **NOTE**
6>
7> - The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
8> - The APIs of this module can be used only in the stage model.
9
10## Modules to Import
11
12```ts
13import { sendableContextManager } from '@kit.AbilityKit';
14```
15
16## SendableContext
17
18SendableContext, which complies with the [Sendable protocol](../../arkts-utils/arkts-sendable.md#sendable-protocol), can be converted to a Context object to implement data transmission between concurrent ArkTS instances (including the main thread and the worker thread of TaskPool or Worker).
19
20**System capability**: SystemCapability.Ability.AbilityRuntime.Core
21
22**Atomic service API**: This API can be used in atomic services since API version 12.
23