Panda3D
|
Classes | |
class | ResultAwaiter |
Public Member Functions | |
def | __init__ (self, loader, numObjects, gotList, callback, extraArgs) |
def | __aiter__ (self) |
def | __await__ (self) |
def | cancel (self) |
def | cancelled (self) |
def | done (self) |
def | exception (self) |
def | gotObject (self, index, object) |
def | result (self) |
Public Attributes | |
callback | |
extraArgs | |
gotList | |
objects | |
requestList | |
requests | |
Returned by loadModel when used asynchronously. This class is modelled after Future, and can be awaited.
def __init__ | ( | self, | |
loader, | |||
numObjects, | |||
gotList, | |||
callback, | |||
extraArgs | |||
) |
def __aiter__ | ( | self | ) |
This allows using `async for` to iterate asynchronously over the results of this class. It does guarantee to return the results in order, though, even though they may not be loaded in that order.
def __await__ | ( | self | ) |
Returns a generator that raises StopIteration when the loading is complete. This allows this class to be used with 'await'.
def cancel | ( | self | ) |
def cancelled | ( | self | ) |
def done | ( | self | ) |
def exception | ( | self | ) |
def gotObject | ( | self, | |
index, | |||
object | |||
) |
def result | ( | self | ) |
callback |
extraArgs |
gotList |
objects |
requestList |
requests |