Did I find the right examples for you? yes no

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

src/e/l/eliot-0.3.0/eliot/tests/test_action.py   eliot(Download)
        a = object()
        ctx.push(a)
        ctx.current()
        self.assertIs(ctx.current(), a)
 
        def inthread():
            valuesInThread.append(ctx.current())
        thread = Thread(target=inthread)
        thread.start()
        thread.join()
        def inthread():
            ctx.push(second)
            valuesInThread.append(ctx.current())
        thread = Thread(target=inthread)
        thread.start()