Mon-Ouie / pry-remote

Connect to Pry remotely
Other
639 stars 81 forks source link

`@client.wait` is now in `Server#run`. #48

Closed sarahzrf closed 10 years ago

sarahzrf commented 10 years ago

This allows you to create a new instance of Server without blocking.

sarahzrf commented 10 years ago

The specific reason I want this is so that I can receive a request for a pry on the server end, host the new instance on port 0, and then reply with the uri for it before actually running it. As it is, I have external way of retrieving the uri without a client connecting because the calling code blocks until then.

I do feel like blocking in initialize is a bad idea regardless...