lib/textbringer/utils.rb in textbringer-1.0.2 vs lib/textbringer/utils.rb in textbringer-1.0.3

- old
+ new

@@ -64,9 +64,12 @@ end alias next_tick foreground def foreground! + if Thread.current == Thread.main + return yield + end q = Queue.new foreground do begin result = yield q.push([:ok, result])