Skip to content

Commit 7bc5e84

Browse files
committed
Deprecate aiohttp.worker
1 parent 2c1e388 commit 7bc5e84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

aiohttp/worker.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
import functools
66
import os
77
import gunicorn.workers.base as base
8+
import warnings
89

910
from aiohttp.wsgi import WSGIServerHttpProtocol
1011

1112

1213
class AsyncGunicornWorker(base.Worker):
1314

1415
def __init__(self, *args, **kw): # pragma: no cover
16+
warnings.warn("AsyncGunicornWorker is deprecated "
17+
"starting from 0.11 release, "
18+
"use standard gaiohttp worker.", DeprecationWarning)
1519
super().__init__(*args, **kw)
1620
self.servers = []
1721
self.connections = {}

0 commit comments

Comments
 (0)