def blocking_iteration_over_query_results(Model, is_the_entity_i_want):
# DO NOT DO THIS IN A TASKLET
qry = Model.query()
for entity in qry:
# Do something with entity
if is_the_entity_i_want(entity):
raise ndb.Return(entity)
评论列表
文章目录