def
func:futureState
futureState(future)
Return current state of a future as one of the following strings:
pending: still queued or being processedok: completed with result valueerr: completed with an exceptioncancelled: future was cancelled before processing See task.