

@classmethod
@gen.engine
def find_async(klass, *args, **kwargs):
    '\n        Find a list of objects in the database, takes standard PyMongo-style\n        input paramaters (non-blocking)::\n\n            users = yield gen.Task(User.find_async,{}) #gets all users in the database\n            print users\n\n        '
    from Mojo.ServerHelpers.RunServer import BACKEND_COLLECTION, DATABASE
    klass.collection_name = klass.__name__
    cb = kwargs['callback']
    del kwargs['callback']
    if DATABASE:
        if BACKEND_COLLECTION:
            this_collection = BACKEND_COLLECTION(DATABASE, klass)
            ret_obj = (yield gen.Task(this_collection.find, *args, **kwargs))
            cb(cb)

dataset/ETHPy150Open lonelycode/Mojo/Mojo/ObjectMapper/ModelPrototype.py Model.find_async/VarMisuse@99/217 `ret_obj`->`cb`