mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-06 23:44:36 +00:00
feat(agent): simplify mutation event publication
This commit is contained in:
parent
8f3aa6558b
commit
164507bbac
22 changed files with 958 additions and 213 deletions
|
|
@ -122,10 +122,11 @@ export class SqliteOpenSession implements Session<SqliteSessionMetadata> {
|
|||
name: string,
|
||||
at: string | null,
|
||||
configuration: LaneConfiguration,
|
||||
onCommitted: ((context: Context) => void | Promise<void>) | undefined,
|
||||
context: Context,
|
||||
): Promise<SessionTree> {
|
||||
return this.admit(async () => {
|
||||
await this.session.createLane(name, at, configuration, context);
|
||||
await this.session.createLane(name, at, configuration, onCommitted, context);
|
||||
return this.view(name);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue