added the attempt
decorator
This commit is contained in:
@ -10,10 +10,14 @@ Makes it more convenient to run awaitable objects in concurrent batches.
|
||||
|
||||
## Decorators
|
||||
|
||||
### in_async_session
|
||||
### @in_async_session
|
||||
|
||||
Handles starting and closing of a temporary `aiohttp.ClientSession` instance around any async function that makes use of such an object to perform requests.
|
||||
|
||||
### @attempt
|
||||
|
||||
Allows defining for an async function to be called repeatedly if it throws a specific kind of exception.
|
||||
|
||||
## Building
|
||||
|
||||
Clone this repo, install `build` via pip, then run `python -m build` from the repository's root directory. This should produce a `dist/` subdirectory with a wheel (build) and archive (source) distribution.
|
||||
|
Reference in New Issue
Block a user