MCPcopy
hub / github.com/faust-streaming/faust / on_sleep

Method on_sleep

tests/unit/transport/test_consumer.py:1133–1137  ·  view source on GitHub ↗
(secs, **kwargs)

Source from the content-addressed store, hash-verified

1131 i = 0
1132
1133 def on_sleep(secs, **kwargs):
1134 nonlocal i
1135 if i > 1:
1136 consumer._stopped.set()
1137 i += 1
1138
1139 consumer.sleep = AsyncMock(name="sleep", side_effect=on_sleep)
1140 consumer.commit = AsyncMock(name="commit")

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected