util.transferableAbortController()
版本历史
| 版本 | 变更 |
|---|---|
| v22.15.0 | 标记 API 稳定。 |
| v18.11.0 | 新增于: v18.11.0 |
创建并返回一个 <AbortController> 实例,其 <AbortSignal> 被标记为可转让,可与 structuredClone() 或 postMessage() 一起使用。
\Creates and returns an <AbortController> instance whose <AbortSignal> is marked
as transferable and can be used with structuredClone() or postMessage().