Skip to content

Commit

Permalink
use async dispatch in observable to avoid blocking calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ronny1982 committed Oct 7, 2024
1 parent c332604 commit a9c9ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/engine/Observable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class Observable<TValue, TOwner = null> implements IObservable<TValue, TO
/**
* Invoke all registered subscribers passing the current value and owner.
*/
public Dispatch(): void {
public async Dispatch(): Promise<void> {
for(const subscription of this.subscribers) {
try {
subscription(this.value, this.owner);
Expand Down

0 comments on commit a9c9ffb

Please sign in to comment.