BucketRunner Class Reference
Inherits from | NSOperation |
---|---|
Declared in | BucketRunner.h BucketRunner.m |
– getValue
Waits if necessary for the computation to complete, and then retrieves its result.
- (BucketInfo *)getValue
Return Value
The computed result
Discussion
Waits if necessary for the computation to complete, and then retrieves its result.
NOTE: Method should not be called on main thread since main thread should be accessible from internal components or external libraries.
Important: Raises KaaRuntimeException if method is called in main thread.
Declared In
BucketRunner.h
– getValueWithTimeout:timeUnit:
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
- (BucketInfo *)getValueWithTimeout:(int64_t)timeout timeUnit:(TimeUnit)timeUnit
Parameters
timeout |
The maximum time to wait |
---|---|
unit |
The time unit of the timeout argument Important: Raises KaaRuntimeException if method is called on main thread. |
Return Value
The computed result
Discussion
Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
NOTE: Method should not be called on main thread since main thread should be accessible from internal components or external libraries.
Declared In
BucketRunner.h