Class: OsCtld::Promise
- Inherits:
-
Object
- Object
- OsCtld::Promise
- Defined in:
- lib/osctld/promise.rb
Defined Under Namespace
Classes: Token
Instance Method Summary collapse
- #add ⇒ Token
- #fulfil ⇒ Object
-
#initialize ⇒ Promise
constructor
A new instance of Promise.
Constructor Details
#initialize ⇒ Promise
Returns a new instance of Promise.
23 24 25 26 |
# File 'lib/osctld/promise.rb', line 23 def initialize @mutex = Mutex.new @tokens = [] end |