Replies: 1 comment
-
| 
         I've figured out a better way to solve my problem, which lets me give out a subscription which is ready for the port to be created later. Unsubscribe attaches a   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I handle the case in which (I believe) creating a subscription requires
async/await?Specifically, I'm in a Chrome extension, and getting the ID of the tab I want to throw a port onto requires
awaiting:Furthermore, to provide an
Unsubscriber(to close the port, clean up resources, etc), I have to get all this work done first to know what Chrome port to send a message to, which doesn't happen until the port connects:Beta Was this translation helpful? Give feedback.
All reactions