MCPcopy
hub / github.com/aio-libs/aiohttp / send

Method send

aiohttp/signals.py:39–50  ·  view source on GitHub ↗

Sends data to all registered receivers.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

37
38 @asyncio.coroutine
39 def send(self, *args, **kwargs):
40 """
41 Sends data to all registered receivers.
42 """
43 ordinal = None
44 debug = self._app._debug
45 if debug:
46 ordinal = self._pre.ordinal()
47 yield from self._pre.send(ordinal, self._name, *args, **kwargs)
48 yield from self._send(*args, **kwargs)
49 if debug:
50 yield from self._post.send(ordinal, self._name, *args, **kwargs)
51
52
53class DebugSignal(BaseSignal):

Callers 15

test_non_coroutineFunction · 0.95
test_debug_signalFunction · 0.95
prepareMethod · 0.45
shutdownMethod · 0.45
cleanupMethod · 0.45
send_strMethod · 0.45
send_bytesMethod · 0.45
feed_dataMethod · 0.45
feed_eofMethod · 0.45
feed_dataMethod · 0.45

Calls 2

ordinalMethod · 0.80
_sendMethod · 0.80

Tested by 4

test_non_coroutineFunction · 0.76
test_debug_signalFunction · 0.76