clojure.lang.Future.isCancelled C# (CSharp) Метод

isCancelled() приватный Метод

private isCancelled ( ) : bool
Результат bool
        public bool isCancelled()
        {
            return _cancelled;
        }

Usage Example

Пример #1
0
        public void CancelAbortsTheTask()
        {
            AFnImpl fn = new AFnImpl();
            fn._fn0 = () => { while (true); };

            Future f = new Future(fn);
            Expect(f.isCancelled(), EqualTo(false));
            Expect(f.cancel(), EqualTo(true));
            Expect(f.isCancelled(), EqualTo(true));
        }
All Usage Examples Of clojure.lang.Future::isCancelled