public void Start(bool async = false) { token = new FlagToken(); if (async) { Task.Run(StartAsync); } else { StartAsync().Wait(); } }
public void Stop() { token.Set(); token = null; }