Last active
August 29, 2015 14:02
-
-
Save renestein/907d15125efb9bc219d2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public const int POLLONE_RUNONE_MAX_TASKS = 1; | |
public virtual int RunOne() | |
{ | |
checkIfDisposed(); | |
return runTasks(withGlobalCancelToken(), POLLONE_RUNONE_MAX_TASKS); | |
} | |
private CancellationToken withGlobalCancelToken() | |
{ | |
return m_stopCancelTokenSource.Token; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment