def DelMulti(self, keys): futures = [] for key in keys: futures.append(db.delete_async(PersistentObjectStoreItem.CreateKey(self._namespace, key))) # If running the dev server, the futures don't complete until the server is # *quitting*. This is annoying. Flush now. if IsDevServer(): [future.wait() for future in futures]
def DelMulti(self, keys): futures = [] for key in keys: futures.append( db.delete_async( PersistentObjectStoreItem.CreateKey(self._namespace, key))) # If running the dev server, the futures don't complete until the server is # *quitting*. This is annoying. Flush now. if IsDevServer(): [future.wait() for future in futures]