privex.helpers.asyncx¶
Functions and classes related to working with Python’s native asyncio support
To avoid issues with the async
keyword, this file is named asyncx
instead of async
Copyright:
+===================================================+
| © 2019 Privex Inc. |
| https://www.privex.io |
+===================================================+
| |
| Originally Developed by Privex Inc. |
| License: X11 / MIT |
| |
| Core Developer(s): |
| |
| (+) Chris (@someguy123) [Privex] |
| (+) Kale (@kryogenic) [Privex] |
| |
+===================================================+
Copyright 2019 Privex Inc. ( https://www.privex.io )
Attributes
Functions
|
Async Synchronous Decorator, borrowed from https://stackoverflow.com/a/23036785/2648583 - added this PyDoc comment and support for returning data from a synchronous function |
|
Call, await, and/or simply return |
|
Decorator which helps with creation of async wrapper functions. |
|
Wraps a class, allowing all async methods to be used in non-async code as if they were normal synchronous methods. |
|
Async version of |
|
Detects if |
Returns |
|
|
Run the coroutine or async function |
|
Run an async function synchronously (useful for REPL testing async functions). |
Classes
|
Inheriting this class allows you to define an async __init__. |