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

Method register_on_finish

aiohttp/web.py:280–282  ·  view source on GitHub ↗
(self, func, *args, **kwargs)

Source from the content-addressed store, hash-verified

278 yield from self.cleanup()
279
280 def register_on_finish(self, func, *args, **kwargs):
281 warnings.warn("Use .on_cleanup.append() instead", DeprecationWarning)
282 self.on_cleanup.append(lambda app: func(app, *args, **kwargs))
283
284 def copy(self):
285 raise NotImplementedError

Calls 1

appendMethod · 0.80