Просмотр исходного кода

docs: sync the projection disposer signature

creatixchu 1 месяц назад
Родитель
Сommit
653a4164b8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      docs/subsystems/session.zh.md

+ 1 - 1
docs/subsystems/session.zh.md

@@ -913,7 +913,7 @@ Persistence is intentionally not implemented here — the agent lifecycle attach
  * @returns the fiber-owned disposer.
  * @throws when another definition already owns this event type.
  */
-registerMessageProjection(projection: SessionMessageProjection): () => void
+registerMessageProjection(projection: SessionMessageProjection): () => Promise<void>
 
 /**
  * Create a session owned by the calling fiber: disposing that fiber stops