Sha256: aef5e3560f733f0c0b906ca15617f5762fc4756c7477ca5be9f0018cab8d4110
Contents?: true
Size: 486 Bytes
Versions: 2
Compression:
Stored size: 486 Bytes
Contents
class Shoes module Swt class Download attr_accessor :busy def initialize(_dsl) @busy = false end # This exists to guarantee the callback block for download completion # executes on the main UI thread. Without it we get thread access errors. def eval_block(blk, result) ::Swt.display.asyncExec do blk.call result @busy = false end end def busy? @busy end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
shoes-swt-4.0.0.pre4 | lib/shoes/swt/download.rb |
shoes-swt-4.0.0.pre3 | lib/shoes/swt/download.rb |