mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 14:45:01 -04:00
Generalise the @cancellable
annotation so it can be used on functions other than just servlet methods. (#13662)
This commit is contained in:
parent
a160406d24
commit
7bc110a19e
10 changed files with 75 additions and 75 deletions
|
@ -18,11 +18,12 @@ from typing import Tuple
|
|||
from twisted.web.server import Request
|
||||
|
||||
from synapse.api.errors import Codes
|
||||
from synapse.http.server import JsonResource, cancellable
|
||||
from synapse.http.server import JsonResource
|
||||
from synapse.replication.http import REPLICATION_PREFIX
|
||||
from synapse.replication.http._base import ReplicationEndpoint
|
||||
from synapse.server import HomeServer
|
||||
from synapse.types import JsonDict
|
||||
from synapse.util.cancellation import cancellable
|
||||
|
||||
from tests import unittest
|
||||
from tests.http.server._base import test_disconnect
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue