GitHub

KeepAliveHandler

API reference for KeepAliveHandler.

The runtime hook behind keep_alive. A runtime that can pin an entity in memory provides it: the handler gets True while a holder keeps the entity alive and False once the last one lets go. When provided, keep_alive calls it instead of sending itself a message.