Part of aculab.posixreactor View Source View In Hierarchy
Prosody Event reactor for Unix systems with poll(), most notably Linux.
Experimental support for notifications.| Method | __init__ | Create a reactor. |
| Method | add_timer | Add a timer after interval in seconds. |
| Method | cancel_timer | Cancel a timer. |
| Method | add | Add an event to the reactor. |
| Method | remove | Remove a handle from the reactor. |
| Method | update | Update our list of fds. |
| Method | run_timers | Run the pending timers. |
| Method | run | Run the reactor. |
| Parameters | handle | A file descriptor, not a File object. |
| mode | A bitmask of select.POLLOUT, select.POLLIN, etc. | |
| method | This will be called when the event is fired. |
| Parameters | handle | A file descriptor. This method blocks until handle is removed by the reactor thread. |