I have been pulling my hair out for weeks on this niggling problem, and I just can\'t find any info or tips on how or what to do, so I\'m hoping someone here on the RubyMoti
as borrrden just said, I'd use a dispatch_semaphore
def ApiHelper.make_sync(&block)
@semaphore = Dispatch::Semaphore.new(0)
BubbleWrap::Reactor.schedule do
# do your stuff
@result = block.call()
@semaphore.signal
end
@semaphore.wait
@result
end