google app engine - Do I have to call get() on the future returned by TaskQueue's addAsync()? -
i using experimental feature of java app engine released in 1.7.6 async task queue operations.
the documentation here: https://developers.google.com/appengine/docs/java/taskqueue/overview#asynchronous-operations
my question is, have call get() on returned future when doing taskqueue.addasync(), or pretty guaranteed addasync() add task queue add()?
for example, happens if incoming http request addasync() of 1 or more tasks , request completes , never call get()? information on helpful.
thanks
the documentation says should indeed call get()
:
when asynchronously adding tasks in transaction, should call
get()
on future before committing transaction ensure request has finished.
it's not clear whether should if don't in transaction it's idea anyway.
Comments
Post a Comment