Table of Contents

Class: ISignalSource ./src/peak/events/interfaces.py

Signal events

Base Classes   
protocols.Interface
Methods   
haveSignal
signals
  haveSignal 
haveSignal ( signame )

Return true if signal named signame exists

  signals 
signals ( *signames )

IEventSource that triggers whenever any of named signals occur

Note: signal callbacks occur from within a signal handler, so it's usually best to yield to an IScheduler.sleep() (or use a scheduled task) in order to avoid doing anything that might interfere with running code.

Also note that signal event sources are only active so long as a reference to them exists. If all references go away, the signal handler is deactivated, and no callbacks will be sent, even if they were already registered.


Table of Contents

This document was automatically generated on Mon Apr 22 01:11:04 2024 by HappyDoc version 2.1