Future

Object that contains result of operation that cant be finished immediately

Future.getValue

Returns value of this future object if future was executed successfully
overload 1:
Future:getValue()
Method Property Fluent Description Representation
Return Value anything

Future.isDone

Checks if future is done, either successfully or with error
overload 1:
Future:isDone()
Method Property Fluent Description Representation
Return Value a Boolean

Future.getOrError

Throws error if it occurred while execution of this future, returns value otherwise
overload 1:
Future:getOrError()
Method Property Fluent Description Representation
Return Value anything

Future.throwError

Throws an error if it occurred while execution of this future.
overload 1:
Future:throwError()
Method Property Fluent Description Representation
Return Value nil

Future.hasError

Checks if error occurred while this future execution
overload 1:
Future:hasError()
Method Property Fluent Description Representation
Return Value a Boolean
a a