|
Panda3D
|
Classes | |
| class | _ResultAwaiter |
Public Member Functions | |
| __init__ (self, loader, numObjects, gotList, callback, extraArgs) | |
| __aiter__ (self) | |
| __await__ (self) | |
| cancel (self) | |
| cancelled (self) | |
| done (self) | |
| exception (self) | |
| gotObject (self, index, object) | |
| result (self) | |
Public Attributes | |
| callback = callback | |
| extraArgs = extraArgs | |
| gotList = gotList | |
| list | objects = [None] * numObjects |
| list | requestList = [] |
| requests = set() | |
Protected Attributes | |
| _loader = loader | |
Static Protected Attributes | |
| bool | _asyncio_future_blocking = False |
Returned by loadModel when used asynchronously. This class is modelled after Future, and can be awaited.
| __init__ | ( | self, | |
| loader, | |||
| numObjects, | |||
| gotList, | |||
| callback, | |||
| extraArgs ) |
| __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.
| __await__ | ( | self | ) |
Returns a generator that raises StopIteration when the loading is complete. This allows this class to be used with 'await'.
| cancel | ( | self | ) |
| cancelled | ( | self | ) |
| done | ( | self | ) |
| exception | ( | self | ) |
| gotObject | ( | self, | |
| index, | |||
| object ) |
| result | ( | self | ) |
|
staticprotected |
|
protected |
| callback = callback |
| extraArgs = extraArgs |
| gotList = gotList |
| objects = [None] * numObjects |
| requestList = [] |
| requests = set() |