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

All Samples(7)  |  Call(5)  |  Derive(0)  |  Import(2)

src/c/o/concurrence-HEAD/lib/concurrence/timer.py   concurrence(Download)
import time
 
from concurrence import TaskLocal
 
class _Timeout(object):
    """
 
    _local = TaskLocal()
 
    @classmethod

src/c/o/concurrence-HEAD/test/testlocal.py   concurrence(Download)
import time
 
from concurrence import unittest, Tasklet, TaskLocal, TaskInstance
 
class TestTaskLocal(unittest.TestCase):
    """test tasklet local storage"""
    def testSingleTask(self):
 
        local = TaskLocal()
    def testMultiTask(self):
 
        local = TaskLocal()
 
        def t():
    def testRecursive(self):
 
        #non-recursive
        local = TaskLocal()
 
 
        #recursive
        local = TaskLocal(True)
 
        local.piet = 30