mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-24 22:09:08 +08:00
feat(core): init organize (#7456)
This commit is contained in:
@@ -449,6 +449,10 @@ export class LiveData<T = unknown>
|
||||
) as any;
|
||||
}
|
||||
|
||||
static flat<T>(v: T): Flat<LiveData<T>> {
|
||||
return new LiveData(v).flat();
|
||||
}
|
||||
|
||||
waitFor(predicate: (v: T) => unknown, signal?: AbortSignal): Promise<T> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const subscription = this.subscribe(v => {
|
||||
|
||||
Reference in New Issue
Block a user