what is the substitutes of DeferredCommand

31 views
Skip to first unread message

wahaha

unread,
Sep 19, 2011, 6:08:49 AM9/19/11
to Google Web Toolkit
DeferredCommand is deprecated,than what is the DeferredCommand?

Jens

unread,
Sep 19, 2011, 6:27:30 AM9/19/11
to google-we...@googlegroups.com
Scheduler.get().scheduleDeferred(...) is the replacement.

-- J.

wahaha

unread,
Sep 19, 2011, 8:39:17 AM9/19/11
to Google Web Toolkit, Jens
thanks ,but how to use ?

Sudhakar Abraham

unread,
Sep 19, 2011, 8:58:30 AM9/19/11
to Google Web Toolkit
The response for rpc, httprequest etc is asynchrnous. You can put the
handleResponse() code inside Scheduler.get().scheduleDeferred(...).
This will protect the current event loop.

S. Abraham
www.DataStoreGwt.com

On Sep 19, 5:39 pm, wahaha <il...@yahoo.com.cn> wrote:
> thanks ,but how to use ?
>

Thad

unread,
Sep 19, 2011, 3:09:20 PM9/19/11
to Google Web Toolkit
Scheduler.get().scheduleDeferred(new Scheduler.ScheduledCommand() {
public void execute() {
// What went into your old DeferredCommand
}
});

On Sep 19, 8:39 am, wahaha <il...@yahoo.com.cn> wrote:
> thanks ,but how to use ?
>

wahaha

unread,
Sep 19, 2011, 11:27:14 PM9/19/11
to Google Web Toolkit
what is the browser event loop?

On 9月19日, 下午8时58分, Sudhakar Abraham <s.abra...@datastoregwt.com>
wrote:
Reply all
Reply to author
Forward
0 new messages