Skip to main content

utils.entry_guard

EntryGuard Objects

class EntryGuard()

A simple context-manager to protect functions from re-entry, usually during asynchronous execution.

In order to check if the function should be executed, query the can_execute property.