Skip to content

Commit

Permalink
Improved task management in the backend API (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
francis-clairicia authored Sep 24, 2023
1 parent f31375c commit c58962b
Show file tree
Hide file tree
Showing 44 changed files with 1,842 additions and 2,264 deletions.
32 changes: 4 additions & 28 deletions docs/source/api/async/backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,6 @@ Runners

.. automethod:: AsyncBackend.bootstrap

.. automethod:: AsyncBackend.new_runner

.. autoclass:: Runner
:members:
:special-members: __enter__, __exit__

Coroutines And Tasks
--------------------

Expand Down Expand Up @@ -78,17 +72,11 @@ Creating Concurrent Tasks
.. autoclass:: Task
:members:

Spawning System Tasks
"""""""""""""""""""""

.. automethod:: AsyncBackend.spawn_task

.. autoclass:: SystemTask
:members:

Timeouts
^^^^^^^^

.. automethod:: AsyncBackend.open_cancel_scope

.. automethod:: AsyncBackend.move_on_after

.. automethod:: AsyncBackend.move_on_at
Expand All @@ -97,7 +85,7 @@ Timeouts

.. automethod:: AsyncBackend.timeout_at

.. autoclass:: TimeoutHandle
.. autoclass:: CancelScope
:members:

Networking
Expand Down Expand Up @@ -135,9 +123,6 @@ Socket Adapter Classes
.. autoclass:: AsyncStreamSocketAdapter
:members:

.. autoclass:: AsyncHalfCloseableStreamSocketAdapter
:members:

.. autoclass:: AsyncDatagramSocketAdapter
:members:

Expand Down Expand Up @@ -187,6 +172,7 @@ Scheduling From Other Threads

.. autoclass:: ThreadsPortal
:members:
:special-members: __aenter__, __aexit__

``concurrent.futures`` Integration
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -213,16 +199,6 @@ Backend Factory
:exclude-members: GROUP_NAME


Tasks Utilities
===============

.. automodule:: easynetwork.api_async.backend.tasks
:no-docstring:

.. autoclass:: SingleTaskRunner
:members:


Concurrency And Multithreading (``concurrent.futures`` Integration)
===================================================================

Expand Down
3 changes: 0 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ sniffio = [
"sniffio>=1.3.0",
]

[project.entry-points."easynetwork.async.backends"]
asyncio = "easynetwork_asyncio:AsyncioBackend"

############################ pdm configuration ############################

[tool.pdm.dev-dependencies]
Expand Down
Loading

0 comments on commit c58962b

Please sign in to comment.