8.2.2.18. AsyncList¶
- class AsyncList(*, future=None, n=1)[source]¶
List of asynchronous results.
Methods
__add__Return self+value.
Call self as a function.
__class_getitem__See PEP 585
__contains__Return key in self.
__delattr__Implement delattr(self, name).
__delitem__Delete self[key].
__dir__Default dir() implementation.
__eq__Return self==value.
__format__Default object formatter.
__ge__Return self>=value.
__getattribute__Return getattr(self, name).
__getitem__x.__getitem__(y) <==> x[y]
__getstate__Helper for pickle.
__gt__Return self>value.
__iadd__Implement self+=value.
__imul__Implement self*=value.
__init_subclass__This method is called when a class is subclassed.
__iter__Implement iter(self).
__le__Return self<=value.
__len__Return len(self).
__lt__Return self<value.
__mul__Return self*value.
__ne__Return self!=value.
__new____reduce__Helper for pickle.
__reduce_ex__Helper for pickle.
__repr__Return repr(self).
__reversed__Return a reverse iterator over the list.
__rmul__Return value*self.
__setattr__Implement setattr(self, name, value).
__setitem__Set self[key] to value.
__sizeof__Return the size of the list in memory, in bytes.
__str__Return str(self).
__subclasshook__Abstract classes can override this to customize issubclass().
appendAppend object to the end of the list.
clearRemove all items from list.
copyReturn a shallow copy of the list.
countReturn number of occurrences of value.
extendExtend list by appending elements from the iterable.
indexReturn first index of value.
insertInsert object before index.
popRemove and return item at index (default last).
removeRemove first occurrence of value.
reverseReverse IN PLACE.
sortSort the list in ascending order and return None.
Attributes
__hash__list of weak references to the object
- __annotations__ = {}¶
- __dict__ = mappingproxy({'__module__': 'schedula.utils.asy', '__doc__': 'List of asynchronous results.', '__init__': <function AsyncList.__init__>, '__call__': <function AsyncList.__call__>, '__dict__': <attribute '__dict__' of 'AsyncList' objects>, '__weakref__': <attribute '__weakref__' of 'AsyncList' objects>, '__annotations__': {}})¶
- __doc__ = 'List of asynchronous results.'¶
- __module__ = 'schedula.utils.asy'¶
- __weakref__¶
list of weak references to the object