Skip to content

Commit

Permalink
Export channel
Browse files Browse the repository at this point in the history
Signed-off-by: Marcos Candeia <[email protected]>
  • Loading branch information
mcandeia committed Oct 17, 2024
1 parent d4bdf46 commit fe0d1ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/actors/util/channels/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ export interface DuplexChannel<TSend, TReceive> extends Disposable {
close: () => void | Promise<void>;
}

/**
* A function that upgrades a channel.
*/
export type ChannelUpgrader<TSend, TReceive = TSend> = (
ch: DuplexChannel<TSend, TReceive>,
) => Promise<void>;
Expand Down
1 change: 1 addition & 0 deletions src/actors/util/watch.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export type { ChannelUpgrader } from ".//channels/channel.ts";
/**
* Watches events and returns async iterators for the events.
*/
Expand Down

0 comments on commit fe0d1ce

Please sign in to comment.