Skip to content

Commit

Permalink
fix (#1837): explicit asyncio.Event usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Lancetnik committed Oct 7, 2024
1 parent 7fbe3ab commit 4af443e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faststream/_internal/application.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import asyncio
import logging
from abc import ABC, abstractmethod
from typing import (
Expand All @@ -12,7 +13,6 @@
Union,
)

import anyio
from typing_extensions import ParamSpec

from faststream.asyncapi.proto import AsyncAPIApplication
Expand Down Expand Up @@ -71,7 +71,7 @@ def __init__(
) -> None:
context.set_global("app", self)

self._should_exit = anyio.Event()
self._should_exit = asyncio.Event() # TODO: move it to anyio
self.broker = broker
self.logger = logger
self.context = context
Expand Down

0 comments on commit 4af443e

Please sign in to comment.