Ordering guarantees for RequestFactory.append()

81 views
Skip to first unread message

Craig Day

unread,
Sep 14, 2011, 11:11:01 PM9/14/11
to google-we...@googlegroups.com
Are there any ordering guarantees for the sequence of callbacks a RequestFactory delivers when multiple RequestContexts are appended? It appears to me that the order of callbacks does actually match the order of the append() calls. If that's guaranteed by the API then it would be great for this to be in the javadoc for the append() call.

Cheers
Craig

Thomas Broyer

unread,
Sep 15, 2011, 6:46:33 AM9/15/11
to google-we...@googlegroups.com
Technically, when you append() a RequestContext, you make it share the same internal state as the one you append to (and that's why you cannot append a RequestContext where you already create()d or edit()ed proxies, or invoked methods); so the order of invocations will be the exact order you made them in your code, whichever the RequestContext you used.
So, this is "guaranteed in practice", but I can't tell if this is "officially" guaranteed "by the API".
Reply all
Reply to author
Forward
0 new messages