@orkestrel/agent 0.0.15 → 0.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1288,6 +1288,18 @@ var AgentContext = class {
1288
1288
  * `push` / `close` / `fail` enqueue/flag, then fire `#wake` so the parked reader wakes,
1289
1289
  * re-reads the buffer, and either yields the next chunk, returns (on `close`), or throws
1290
1290
  * (on `fail`). Event-free, no `!` / `as` / `any`.
1291
+ *
1292
+ * @example
1293
+ * ```ts
1294
+ * import { Channel } from '@orkestrel/agent'
1295
+ *
1296
+ * const channel = new Channel<number>()
1297
+ * channel.push(1)
1298
+ * channel.close()
1299
+ * for await (const value of channel.drain()) {
1300
+ * value // 1
1301
+ * }
1302
+ * ```
1291
1303
  */
1292
1304
  var Channel = class {
1293
1305
  #buffer = [];