refactor: tighten plugin sdk channel seams

This commit is contained in:
Peter Steinberger
2026-03-16 01:05:18 -07:00
parent 7a09255361
commit f11589b311
72 changed files with 319 additions and 125 deletions

View File

@@ -3,6 +3,7 @@ export type KeyedAsyncQueueHooks = {
onSettle?: () => void;
};
/** Serialize async work per key while allowing unrelated keys to run concurrently. */
export function enqueueKeyedTask<T>(params: {
tails: Map<string, Promise<void>>;
key: string;