class PWork::Async::Task
Attributes
block[RW]
caller[RW]
error[RW]
id[RW]
state[RW]
thread[RW]
thread_local_storage[RW]
Public Class Methods
new()
click to toggle source
# File lib/pwork/async/task.rb, line 12 def initialize self.id = SecureRandom.uuid self.state = :pending self.thread_local_storage = {} end