mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-23 22:02:19 +00:00
chore: use url format for request id
This commit is contained in:
parent
635796ad69
commit
3b6d27948d
@ -47,7 +47,7 @@ export class WorkerClientBus<T = string> {
|
||||
|
||||
async request<R, P>(actionName: T, payload: P): Promise<R> {
|
||||
return new Promise((resolve, reject) => {
|
||||
const id = nanoid();
|
||||
const id = `request://${actionName}/${nanoid()}`;
|
||||
this.idPromiseMap.set(id, [resolve, reject]);
|
||||
this.worker.postMessage({
|
||||
id,
|
||||
|
Loading…
Reference in New Issue
Block a user