Add clearExitFlag().

This commit is contained in:
Sönke Ludwig 2016-06-16 10:42:38 +02:00
parent 1e27b33f26
commit 32394bb4c9
2 changed files with 19 additions and 1 deletions

View file

@ -48,6 +48,15 @@ interface EventDriver {
*/
void exit();
/** Resets the exit flag.
`processEvents` will automatically reset the exit flag before it returns
with `ExitReason.exited`. However, if `exit` is called outside of
`processEvents`, the next call to `processEvents` will return with
`ExitCode.exited` immediately. This function can be used to avoid this.
*/
void clearExitFlag();
//
// TCP
//