Skip to content

Commit 53b92f2

Browse files
committed
ref(transport): Move flush_async from ABC
Move flush_async down to the specific async transport subclass. This makes more sense anyway, as this will only be required by the async transport. If more async transports are expected, another shared superclass can be created. GH-4568
1 parent 5abf356 commit 53b92f2

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

sentry_sdk/transport.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -107,19 +107,6 @@ def flush(
107107
"""
108108
return None
109109

110-
async def flush_async(
111-
self: Self,
112-
timeout: float,
113-
callback: Optional[Any] = None,
114-
) -> None:
115-
"""
116-
Send out current events within `timeout` seconds. This method needs to be awaited for blocking behavior.
117-
118-
The default implementation is a no-op, since this method may only be relevant to some transports.
119-
Subclasses should override this method if necessary.
120-
"""
121-
return None
122-
123110
def kill(self: Self) -> None:
124111
"""
125112
Forcefully kills the transport.

0 commit comments

Comments
 (0)