def maybe_green(app, callable, *args, **kwargs):
    pool = app.green_pool
    if pool:
        return pool.submit(callable, *args, **kwargs)
    else:
        return callable(*args, **kwargs)
Run a ``callable`` in the green pool if needed
dataset/ETHPy150Open quantmind/lux/lux/utils/async.py/maybe_green