예제 #1
0
 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]
예제 #2
0
 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]