simulacre/pry-remote-em — comment on commit 5bbe9e1d41cb0d43189a0e02218208f8f8edc008
File:  line 0
By simulacre:

So that the #auto_complete method can call Fiber.yield from within that Fiber.

Here it is without the wrapping Fiber.

```ruby
% ruby -I lib bin/pry-remote-em
[pry-remote-em] client connected to pryem://127.0.0.1:6462/
[pry-remote-em] remote is PryRemoteEm 0.4.1 pryems
[pry-remote-em] negotiating TLS
[pry-remote-em] TLS connection established

From: test/service.rb @ line 21 in Object#N/A:

16: end
17: end
18:
19: obj = {:encoding => __ENCODING__, :weather => :cloudy}
20: EM.run{
=> 21: obj.remote_pry_em('localhost', :auto, :tls => true, :target => binding)
[1] pry(main)> ls
self methods: include private public to_s
locals: _ _dir_ _ex_ _file_ _in_ _out_ _pry_ auth_anon auth_hash obj
[2] pry(main)> hel ^TAB ^TAB
[pry-remote-em] session terminated
/Users/caleb/src/pry-remote-em/lib/pry-remote-em/client.rb:52:in `yield': can't yield from root fiber (FiberError)
from /Users/caleb/src/pry-remote-em/lib/pry-remote-em/client.rb:52:in `auto_complete'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/readline.rb:131:in `call'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/readline.rb:131:in `readline_attempted_completion_function'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:6216:in `gen_completion_matches'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:6701:in `rl_complete_internal'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:6791:in `rl_complete'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:4262:in `_rl_dispatch_subseq'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:4251:in `_rl_dispatch'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:4669:in `readline_internal_charloop'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:4743:in `readline_internal'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/rbreadline.rb:4765:in `readline'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/rb-readline-0.4.2/lib/readline.rb:40:in `readline'
from /Users/caleb/src/pry-remote-em/lib/pry-remote-em/client.rb:59:in `receive_json'
from /Users/caleb/src/pry-remote-em/lib/pry-remote-em/json-proto.rb:15:in `receive_data'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run_machine'
from /Users/caleb/.rvm/gems/ruby-1.9.2-p290/gems/eventmachine-1.0.0.beta.4/lib/eventmachine.rb:179:in `run'
from bin/pry-remote-em:27:in `

'
```