View source on GitHub |
A Future has 0 or more callbacks.
Inherits From: expected_type
google.appengine.ext.ndb.Future(
info=None
)
The callbacks will be called when the result is ready.
NOTE: This is somewhat inspired but not conformant to the Future interface defined by PEP 3148. It is also inspired (and tries to be somewhat compatible with) the App Engine specific UserRPC and MultiRpc classes.
Attributes | |
---|---|
state
|
Methods
add_callback
add_callback(
callback, *args, **kwds
)
add_immediate_callback
add_immediate_callback(
callback, *args, **kwds
)
check_success
check_success()
done
done()
dump
dump()
dump_stack
dump_stack()
get_exception
get_exception()
get_result
get_result()
get_traceback
get_traceback()
set_exception
set_exception(
exc, tb=None
)
set_result
set_result(
result
)
wait
wait()
wait_all
@classmethod
wait_all( futures )
wait_any
@classmethod
wait_any( futures )
Class Variables | |
---|---|
FINISHING |
2
|
IDLE |
0
|
RUNNING |
1
|