Example #1
0
        public void Start(bool async = false)
        {
            token = new FlagToken();

            if (async)
            {
                Task.Run(StartAsync);
            }
            else
            {
                StartAsync().Wait();
            }
        }
Example #2
0
 public void Stop()
 {
     token.Set();
     token = null;
 }