Sci-Bots organization repository
sci-bots / asyncio-helpers Goto Github PK
View Code? Open in Web Editor NEWHelper functions, etc. for asyncio development
License: BSD 3-Clause "New" or "Revised" License
Helper functions, etc. for asyncio development
License: BSD 3-Clause "New" or "Revised" License
Currently, this package is only available through the sci-bots
Conda channel.
Since this package may be more generally useful, it should be migrated to the conda-forge
channel instead.
See exception below:
Unfortunately, this error occurs intermittently and very infrequently. We haven't figured out a way to reliably reproduce the issue.
However, in at least one instance, this erro has occurred with the following traceback:
2018-09-12 13:32:51.760 [ERROR:trollius]: Exception in callback _cancel() at C:\Users\chris\Documents\GitHub\asyncio-helpers\src\asyncio_helpers\__init__.py:55
handle: <Handle _cancel() at C:\Users\chris\Documents\GitHub\asyncio-helpers\src\asyncio_helpers\__init__.py:55>
Traceback (most recent call last):
File "C:\Users\chris\Miniconda2-x86\envs\db-dev-copy\lib\site-packages\trollius\events.py", line 136, in _run
self._callback(*self._args)
File "C:\Users\chris\Documents\GitHub\asyncio-helpers\src\asyncio_helpers\__init__.py", line 58, in _cancel
tasks_to_cancel = asyncio.Task.all_tasks(loop=loop).copy()
File "C:\Users\chris\Miniconda2-x86\envs\db-dev-copy\lib\site-packages\trollius\tasks.py", line 79, in all_tasks
return set(t for t in cls._all_tasks if t._loop is loop)
File "C:\Users\chris\Miniconda2-x86\envs\db-dev-copy\lib\site-packages\trollius\tasks.py", line 79, in <genexpr>
return set(t for t in cls._all_tasks if t._loop is loop)
File "C:\Users\chris\Miniconda2-x86\envs\db-dev-copy\lib\_weakrefset.py", line 60, in __iter__
for itemref in self.data:
RuntimeError: Set changed size during iteration
As of v0.2.1, trollius
is required. However, in principle, it should also support the asyncio
package added to the standard Python library in Python 3.4.
yield asyncio.From
or raise asyncio.Return
into separate source files, e.g., with _py2.py
suffix.*_py2.py
files to corresponding *_py3.py
files.*_py2.py
files to call either the _py2
or _py3
code, depending on the running Python version.asyncio-helpers-feedstock
recipe to only require trollius
for py<34
.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.