Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/python-trio/trio-asyncio
a re-implementation of the asyncio mainloop on top of Trio
https://github.com/python-trio/trio-asyncio
461f05a55df8ddf181bce2582c567b0d8c83ca07 authored about 7 years ago by Matthias Urlichs <[email protected]>
5899bb57b79497b7fdbb71d17cde79b936d9c72d authored about 7 years ago by Matthias Urlichs <[email protected]>
cb4d319d029f33c2313ec2099ba37488e1aa136f authored about 7 years ago by Matthias Urlichs <[email protected]>
d9d7e8791d15e1c725635cf96fc9ee272f3118eb authored about 7 years ago by Matthias Urlichs <[email protected]>
88036137077be91820d69209ef7d9cb31867d662 authored about 7 years ago by Matthias Urlichs <[email protected]>
cc1ba23f58153003591bd05f0bccbd1ec9b41e25 authored about 7 years ago by Matthias Urlichs <[email protected]>
0fd205efa9d9f6aaca1dcfa8b47c8dfc43802cf6 authored about 7 years ago by Matthias Urlichs <[email protected]>
63de7ec565c228a0103976c4a1a9b2b66b7142ed authored about 7 years ago by Matthias Urlichs <[email protected]>
f5ead796b6cee36698171dab862770e60f15892a authored about 7 years ago by Matthias Urlichs <[email protected]>
4f373783356d6eb356197e71de23dd53e659de73 authored about 7 years ago by Matthias Urlichs <[email protected]>
2610fbdb72bb186b4009f1db6705941a2e39d93b authored about 7 years ago by Matthias Urlichs <[email protected]>
a495c6c877f8e71c3ab590556ab0dda27f3b492a authored about 7 years ago by Matthias Urlichs <[email protected]>
19a396c7e0b735fa7d9e8a02c995f943031f99d0 authored about 7 years ago by Matthias Urlichs <[email protected]>
ff544fc7a41875e8f1b271902ffe087a41dba3f9 authored about 7 years ago by Matthias Urlichs <[email protected]>
5db92303dcda7e09cd5678bc6aa705b2efe02eb4 authored about 7 years ago by Matthias Urlichs <[email protected]>
d22a1086cc03dfee563be2e5108d539d1d7de8b9 authored about 7 years ago by Matthias Urlichs <[email protected]>
10763af48322f1a1dab31b7ccb973fb99f585550 authored about 7 years ago by Matthias Urlichs <[email protected]>
003239874b646480d867a2cf654499cf7a2d9c3b authored about 7 years ago by Matthias Urlichs <[email protected]>
398ef574b563977fc6fa6a4434a1c42738ca87b5 authored about 7 years ago by Matthias Urlichs <[email protected]>
2ab397016f5d1a7e9487f3329ae0dcf3cb522a13 authored about 7 years ago by Matthias Urlichs <[email protected]>
93902f7ef3145d62e0f6c8cd5026d9e0b913b718 authored about 7 years ago by Matthias Urlichs <[email protected]>
which raise before first yielding
as can happen if a non-async function is intended to return an...
fe236e9cd9595011f36abdcf0525db9b56fe5b2c authored about 7 years ago by Matthias Urlichs <[email protected]>
c886f2b6d3dd0fa6f34bbe3436102564c7ab2a2f authored about 7 years ago by Matthias Urlichs <[email protected]>
a3cfecaac6ebb3a5af7acbc2f85ab67130db3fd2 authored about 7 years ago by Matthias Urlichs <[email protected]>
1892d964ddcbd79a75dcf145a1ef0d02d1ee0439 authored about 7 years ago by Matthias Urlichs <[email protected]>
91591e944d5877e69ffad1879db185a388d351c6 authored about 7 years ago by Matthias Urlichs <[email protected]>
does not work yet
cc79b9163da7cd7cf1f08538ee3dd65b875d86a3 authored about 7 years ago by Matthias Urlichs <[email protected]>f60750dba44772cb9c023455dd33e4c01fe217ff authored about 7 years ago by Matthias Urlichs <[email protected]>
b47cd3ac4d58595bb124947eeeb4d08834cce0da authored about 7 years ago by Matthias Urlichs <[email protected]>
f92824ede573b4dc3a0dde8834b68b99b6af85d9 authored about 7 years ago by Matthias Urlichs <[email protected]>
27408256df90290df9ff913d0549418d170afbb8 authored about 7 years ago by Matthias Urlichs <[email protected]>
Note that the imported tests (in trio/tests/aiotest and …/python)
have not been touched: future ...
f512e6a0f07fab7aad8d104bd3825cef03717b74 authored about 7 years ago by Matthias Urlichs <[email protected]>
727e42e81c667ebbdce4382a040335d5f3737bf6 authored about 7 years ago by Matthias Urlichs <[email protected]>
210f4033676b51c77bb1bf644e7a7873a1422a1c authored about 7 years ago by Matthias Urlichs <[email protected]>
eaf5273afc6745222d388995f8fb6c5fa14d0ec5 authored about 7 years ago by Matthias Urlichs <[email protected]>
d77bafa952a6f9043e2ad435d7b21387a1d64545 authored about 7 years ago by Matthias Urlichs <[email protected]>
f99b3a5c028d9f24acc7733b161b8f64f3f14e13 authored about 7 years ago by Matthias Urlichs <[email protected]>
This boils down to skipping tests for bugs fixed in 3.6
52781534da51f634a70a5a40a7f336bef8639c45 authored about 7 years ago by Matthias Urlichs <[email protected]>a134a673e51db12786fee188b9cb3fb78dddd185 authored about 7 years ago by Matthias Urlichs <[email protected]>
3faaf4c118f87848fd5690129164ada1e9297e2d authored about 7 years ago by Matthias Urlichs <[email protected]>
This reverts commit 10e77e2f527811fc77f104b74e25cee53b1dea8d.
26fa3740b24f1ad66589ff202a64b91e47f6d916 authored about 7 years ago by Matthias Urlichs <[email protected]>
The read/write callback may directly close a file descriptor and then
enqueue a callback to term...
insist on using Trio's native methods
no "foreign" worker pool implementation allowed
They hang.
b671fa48bff1e202d75a4e49b15f5b61ce73d3da authored about 7 years ago by Matthias Urlichs <[email protected]>498fd2ab4683a6125a71d6f328acc506a0cda999 authored about 7 years ago by Matthias Urlichs <[email protected]>
Use a logger for various async results/errors.
They should all be caught somewhere, but we need ...
We can simply cancel / restart the i/o handlers in-place.
c665919d585b1779501d243d47dd2fb81d083a87 authored about 7 years ago by Matthias Urlichs <[email protected]>8d355960d522c2b17972e61ab23c80d1a2d47564 authored about 7 years ago by Matthias Urlichs <[email protected]>
baaa6e14bb8aeabcc3464f75f336609d2e315f3e authored about 7 years ago by Matthias Urlichs <[email protected]>
to ensure ordering
e4b86cabd6bdd0d0b0532e83bd2518508b1a0171 authored about 7 years ago by Matthias Urlichs <[email protected]>3281e5c20f3b28f64b6c5cd1b3e807aac1ef0d1d authored about 7 years ago by Matthias Urlichs <[email protected]>
Oops :-/
0a055877ad3d1f3709e7a2134aa24a2a526ee9b2 authored about 7 years ago by Matthias Urlichs <[email protected]>The loop's absolute pseudo-time does not pass while it's suspended.
3f1928fc2410a309e4603b29a736b13400174326 authored about 7 years ago by Matthias Urlichs <[email protected]>c83ce3c52332e29b2cd0838505e4b203cc2ad75e authored about 7 years ago by Matthias Urlichs <[email protected]>
3b410f434c1f09da99839c89bdb390b604f42693 authored about 7 years ago by Matthias Urlichs <[email protected]>
47bba98af26dbd875fc17958a7a251e39b7d1539 authored about 7 years ago by Matthias Urlichs <[email protected]>
it's benign, and used in testing
e94fb7a49f6aafd1ae954d3eb597be6840fb407b authored about 7 years ago by Matthias Urlichs <[email protected]>
Our .cancel() was never called because it was behind
asyncio.Handle.cancel() in the MRO.
asyncio's run_forever() does a lot of things.
Rather than replace it, override the inner single-...
otherwise debug output will be too cryptic
and lack essentioal information
This involves instrumenting _remove_reader/writer to drop them from
._saved_fds when idle.
84d47593999c962423fe2144ef8c609c55fe028d authored about 7 years ago by Matthias Urlichs <[email protected]>
7abae4e3bd83d334c3b9a741a68b2c2f052b9f2e authored about 7 years ago by Matthias Urlichs <[email protected]>
236102866d969f4407d0bb9defe8af7ee091b1c4 authored about 7 years ago by Matthias Urlichs <[email protected]>
These are still somewhat untested.
aa1d3b64082627bf7fb23b69e3671b5cfdb949e3 authored about 7 years ago by Matthias Urlichs <[email protected]>
for Trio to wait for an asyncio future
and call an asyncio procedure/method
for doing the same with TimerHandle later
de9c5d3ecb74045d52a088af1a304f06cae4bfe0 authored about 7 years ago by Matthias Urlichs <[email protected]>885e7966956e4cb272e079cfbe6fe5eaa3e730dd authored about 7 years ago by Matthias Urlichs <[email protected]>
fd10a3e2d1cc4d0235077684f67f0332fb9b38c7 authored about 7 years ago by Matthias Urlichs <[email protected]>
depending on the loop's idle state
49176c122b499dfcb14f33ea7ca12feb3814dfab authored about 7 years ago by Matthias Urlichs <[email protected]>a common coding style is a good thing
978b430f79a11779fe92f56ca1f9fdf7bd571b93 authored about 7 years ago by Matthias Urlichs <[email protected]>8ee93d4046dcd35909ae84128d3bc2c3512f4d19 authored about 7 years ago by Matthias Urlichs <[email protected]>
This change allows common patterns like
t = loop.time()
loop.call_at(t+10, foo)
loop.run_f...
dba3bc9318d164a12aa8f5481a0412e8bd04b197 authored about 7 years ago by Matthias Urlichs <[email protected]>
10339f12e855ef5ba51be2f55f2f8f55abd6d7d5 authored about 7 years ago by Matthias Urlichs <[email protected]>
02ddb35d6ed51439ee129aee24ea7f069e0dbc79 authored about 7 years ago by Matthias Urlichs <[email protected]>
08ccc874beb3aa964a45e22514efaa9e0db4f251 authored about 7 years ago by Matthias Urlichs <[email protected]>
Source: https://bitbucket.org/haypo/aiotest
4051bcb4ecfcf10ea0e235743aed5355c02c17e0 authored about 7 years ago by Matthias Urlichs <[email protected]>
asyncio semantics says that delayed tasks need to be kept waiting while the
loop is interrupted....
This allows the user to cancel a callback
e5b7a7c8ae16d14d0cc6d7235a3e88edbd5457be authored about 7 years ago by Matthias Urlichs <[email protected]>6ebea08cfa885f4ff2e2928e98e9f9291411fdd4 authored about 7 years ago by Matthias Urlichs <[email protected]>
479c8a9274bdb486eda1a96aad07b452f450deac authored about 7 years ago by Matthias Urlichs <[email protected]>
This enables the user to cancel the task (if async)
after it's started
with support for queuing calls before the loop starts
79f3e3dd11a5acde55804b658b2e6fcd3466c4d1 authored about 7 years ago by Matthias Urlichs <[email protected]>
This allows the loop._ready "array" to accept new handles
which gives us a working ``loop.call_s...
Asyncio compatibility is implemented by heavily hacking a "standard"
Unix asyncio mainloop.
The...
74b6bad44ab2c18b7045a3e2a6ebede8a572b369 authored about 7 years ago by Matthias Urlichs <[email protected]>c937a74987d03fe2f3ea203067bde1629dd04475 authored about 7 years ago by Matthias Urlichs <[email protected]>
cf65aefb79d32b92ce951114d04f9544b493fef8 authored about 7 years ago by Matthias Urlichs <[email protected]>