Small fixes

This commit is contained in:
nocturn9x 2021-08-06 11:53:38 +02:00
parent 44a07521b2
commit 2cdaa231b4
2 changed files with 3 additions and 2 deletions

View File

@ -318,7 +318,7 @@ class AsyncScheduler:
dict(self.selector.get_map()).values(),
):
self.io_release(k.fileobj)
task.last_io = ()
task.last_io = ()
def io_release(self, sock):
"""

View File

@ -18,6 +18,7 @@ limitations under the License.
import traceback
from typing import List
from giambio.task import Task
class GiambioError(Exception):
@ -43,7 +44,7 @@ class CancelledError(GiambioError):
at least it should be re-raised and never ignored
"""
...
task: Task
class ResourceBusy(GiambioError):