Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
"""Provide gevent compatibility.
Usage: >>> from handel.gevent import patch >>> patch() """
# Green pool
# The 'maxsize=1' argument provides implicit locking
# Green decorator
"""Make a given function gevent-compatible by running it in a gevent threadpool."""
def wrapper(*args, **kwargs):
# Patch function
"""Provide gevent compatibility.
Usage: >>> from handel.gevent import patch >>> patch() """ # Gevent-compatible version of handel FFI library # Populate gevent_handel # Patch |