40 lines · 1.3 KB · TypeScript
RawDownload
/** * ProviderRuntimeIngestionService - Provider runtime ingestion service interface. * * Owns background workers that consume provider runtime streams and emit * orchestration commands/events. * * @module ProviderRuntimeIngestionService */import { ServiceMap } from "effect";import type { Effect, Scope } from "effect"; /** * ProviderRuntimeIngestionShape - Service API for runtime ingestion lifecycle. */export interface ProviderRuntimeIngestionShape {  /**   * Start ingesting provider runtime events into orchestration commands.   *   * The returned effect must be run in a scope so all worker fibers can be   * finalized on shutdown.   *   * Uses an internal queue and continues after non-interrupt failures by   * logging warnings.   */  readonly start: Effect.Effect<void, never, Scope.Scope>;   /**   * Resolves when the internal processing queue is empty and idle.   * Intended for test use to replace timing-sensitive sleeps.   */  readonly drain: Effect.Effect<void>;} /** * ProviderRuntimeIngestionService - Service tag for runtime ingestion workers. */export class ProviderRuntimeIngestionService extends ServiceMap.Service<  ProviderRuntimeIngestionService,  ProviderRuntimeIngestionShape>()("t3/orchestration/Services/ProviderRuntimeIngestion/ProviderRuntimeIngestionService") {}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t