Panda3D
Classes | Public Member Functions | Public Attributes | List of all members
Loader.Callback Class Reference

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
 

Detailed Description

Returned by loadModel when used asynchronously.  This class is
modelled after Future, and can be awaited.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  loader,
  numObjects,
  gotList,
  callback,
  extraArgs 
)

Member Function Documentation

◆ __aiter__()

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. 

◆ __await__()

def __await__ (   self)
Returns a generator that raises StopIteration when the loading
is complete.  This allows this class to be used with 'await'.

◆ cancel()

def cancel (   self)

◆ cancelled()

def cancelled (   self)

◆ done()

def done (   self)

◆ exception()

def exception (   self)

◆ gotObject()

def gotObject (   self,
  index,
  object 
)

◆ result()

def result (   self)

Member Data Documentation

◆ callback

callback

◆ extraArgs

extraArgs

◆ gotList

gotList

◆ objects

objects

◆ requestList

requestList

◆ requests

requests