Advertisement
Guest User

Untitled

a guest
Jun 29th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. # Nemo y aero son 2 empresas que me dan Hoteles.
  2.  
  3. nemo_thread = Thread.new{Thread.current["nemo"] = NemoHotelManager.new.call(query)}
  4. aero_thread = Thread.new{Thread.current["aero"] = AeroHotelManager.new.call(query)}
  5.  
  6. nemo_thread.join
  7. aero_thread.join
  8.  
  9. # sigo el flujo normal y uso nemo_thread["nemo"] y aero_thread["aero"]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement