Skip to content

Instantly share code, notes, and snippets.

@renestein
Last active August 29, 2015 14:02
Show Gist options
  • Save renestein/907d15125efb9bc219d2 to your computer and use it in GitHub Desktop.
Save renestein/907d15125efb9bc219d2 to your computer and use it in GitHub Desktop.
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