-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support once and signal in MessageChannel
- Loading branch information
1 parent
dfbe7fd
commit 7c3d0d0
Showing
8 changed files
with
97 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holoflows/kit](./kit.md) > [TargetBoundEventListenerOptions](./kit.targetboundeventlisteneroptions.md) | ||
|
||
## TargetBoundEventListenerOptions interface | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
export interface TargetBoundEventListenerOptions | ||
``` | ||
|
||
## Properties | ||
|
||
| Property | Type | Description | | ||
| --- | --- | --- | | ||
| [once?](./kit.targetboundeventlisteneroptions.once.md) | boolean | <i>(Optional)</i> Run the listener only once. | | ||
| [signal?](./kit.targetboundeventlisteneroptions.signal.md) | AbortSignal | <i>(Optional)</i> Cancel the listener by AbortSignal | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holoflows/kit](./kit.md) > [TargetBoundEventListenerOptions](./kit.targetboundeventlisteneroptions.md) > [once](./kit.targetboundeventlisteneroptions.once.md) | ||
|
||
## TargetBoundEventListenerOptions.once property | ||
|
||
Run the listener only once. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
once?: boolean; | ||
``` |
13 changes: 13 additions & 0 deletions
13
api-documents/kit.targetboundeventlisteneroptions.signal.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@holoflows/kit](./kit.md) > [TargetBoundEventListenerOptions](./kit.targetboundeventlisteneroptions.md) > [signal](./kit.targetboundeventlisteneroptions.signal.md) | ||
|
||
## TargetBoundEventListenerOptions.signal property | ||
|
||
Cancel the listener by AbortSignal | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
signal?: AbortSignal; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters