InMemoryTransport.once

InMemoryTransport.once(event, f=None)[source]

The same as ee.on, except that the listener is automatically removed after being called.