Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

python310-unsync-1.3-1.19 RPM for noarch

From OpenSuSE Tumbleweed for noarch

Name: python310-unsync Distribution: openSUSE Tumbleweed
Version: 1.3 Vendor: openSUSE
Release: 1.19 Build date: Sat Jan 2 02:40:00 2021
Group: Unspecified Build host: reproducible
Size: 20659 Source RPM: python-unsync-1.3-1.19.src.rpm
Packager: https://bugs.opensuse.org
Url: https://github.com/alex-sherman/unsync
Summary: Unsynchronize asyncio
Unsynchronize `asyncio` by using an ambient event loop in a separate thread.


1. Mark all async functions with `@unsync`. May also mark regular
   functions to execute in a separate thread.
    * All `@unsync` functions, async or not, return an `Unfuture`
2. All `Futures` must be `Unfutures` which includes the result of an
   `@unsync` function call, or wrapping `Unfuture(asyncio.Future)` or
   `Unfuture(concurrent.Future)`. `Unfuture` combines the behavior of
   `asyncio.Future` and `concurrent.Future`:
   * `Unfuture.set_value` is threadsafe unlike `asyncio.Future`
   * `Unfuture` instances can be awaited, even if made from
     `concurrent.Future`
   * `Unfuture.result()` is a blocking operation *except* in
     `unsync.loop`/`unsync.thread` where it behaves like
     `asyncio.Future.result` and will throw an exception if the future
     is not done
3. Functions will execute in different contexts:
   * `@unsync` async functions will execute in an event loop in
     `unsync.thread`
   * `@unsync` regular functions will execute in
     `unsync.thread_executor`, a `ThreadPoolExecutor`
   * `@unsync(cpu_bound=True)` regular functions will execute in
     `unsync.process_executor`, a `ProcessPoolExecutor`

Provides

Requires

License

MIT

Changelog

* Sat Jan 02 2021 Matej Cepl <mcepl@suse.com>
  - Initial packaging of unsync 1.3.

Files

/usr/lib/python3.10/site-packages/unsync
/usr/lib/python3.10/site-packages/unsync-1.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/unsync-1.3-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/unsync-1.3-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/unsync-1.3-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/unsync-1.3-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/unsync/__init__.py
/usr/lib/python3.10/site-packages/unsync/__pycache__
/usr/lib/python3.10/site-packages/unsync/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/unsync/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/unsync/__pycache__/unsync.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/unsync/__pycache__/unsync.cpython-310.pyc
/usr/lib/python3.10/site-packages/unsync/unsync.py


Generated by rpm2html 1.8.1

Fabrice Bellet, Wed May 1 23:23:10 2024