Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

src/a/d/advanced-01-HEAD/asvetlov/tests/core/test_delayedcall.py   advanced-01(Download)
    def test_cancel(self):
        dc = DelayedCall(self.EVLOOP, self.NOW, lambda:None, ())
        self.assertFalse(dc.cancelled)
        dc.cancel()
        self.assertTrue(dc.cancelled)