How to use the pebble.concurrent.process function in Pebble

To help you get started, we’ve selected a few Pebble examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github noxdafox / pebble / test / test_concurrent_process_forkserver.py View on Github external
@concurrent.process
def error_decorated():
    raise RuntimeError("BOOM!")
github noxdafox / pebble / test / test_concurrent_process_spawn.py View on Github external
@concurrent.process(daemon=False)
def daemon_keyword_decorated():
    return multiprocessing.current_process().daemon
github noxdafox / pebble / test / test_concurrent_process_forkserver.py View on Github external
@concurrent.process
def decorated(argument, keyword_argument=0):
    """A docstring."""
    return argument + keyword_argument
github noxdafox / pebble / test / test_concurrent_process_forkserver.py View on Github external
@concurrent.process(timeout=0.1)
def long_decorated():
    time.sleep(10)
github noxdafox / pebble / test / test_concurrent_process_forkserver.py View on Github external
            @concurrent.process(timeout='Foo')
            def function():
                return
github noxdafox / pebble / test / test_concurrent_process_spawn.py View on Github external
@concurrent.process(timeout=0.1)
def sigterm_decorated():
    signal.signal(signal.SIGTERM, signal.SIG_IGN)
    time.sleep(10)
github noxdafox / pebble / test / test_concurrent_process_fork.py View on Github external
@concurrent.process(name='concurrent_process_name')
def name_keyword_decorated():
    return multiprocessing.current_process().name
github noxdafox / pebble / test / test_concurrent_process_fork.py View on Github external
@concurrent.process
def pickling_error_decorated():
    event = threading.Event()
    return event
github noxdafox / pebble / test / test_concurrent_process_spawn.py View on Github external
@concurrent.process
def decorated(argument, keyword_argument=0):
    """A docstring."""
    return argument + keyword_argument
github noxdafox / pebble / test / test_concurrent_process_spawn.py View on Github external
    @concurrent.process
    def instmethod(self):
        return self.b