You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's a good idea. While I don't have the resources at this time to implement it in the library, this should work as quick-workaround:
⚠ThiscodesnippethasnotbeentestedimportpTimeoutfrom'p-timeout'try{constresp=awaitpTimeout(sendMessage('messageID',{msgData: 'data'},`content-script@123`),{milliseconds: 3000})}catch(err){// [TimeoutError: Promise timed out after 3000 milliseconds]}
I would find it useful to add an option for timeout waiting for response, when calling "sendMessage".
Something like this:
The text was updated successfully, but these errors were encountered: