pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandro Martini <sandro.mart...@gmail.com>
Subject Re: Annotation to force method execution on EDT Thread, for Pivot 2.1
Date Mon, 02 Apr 2012 13:18:46 GMT
Some related info (but for Android) here:
http://stackoverflow.com/questions/5217900/android-annotation-to-run-on-ui-thread

Bye


2012/4/2 Sandro Martini <sandro.martini@gmail.com>:
> Hi all,
> for the 2.1 release I'm start to think if (to make some code, even
> user code, more readable) using an annotation we could try to mark a
> method to run its code in the EDT event thread, so something like:
>
>        ApplicationContext.queueCallback(new Runnable() {
>            @Override
>            public void run() {
>                // stuff code ...
>            }
>        });
>
>
> could be
>
> @edt( ...optional parameters )
> myStuffCode()  {
>                // stuff code ...
>            }
>
> just as idea ... probably not-so-much type saving, but more readable.
>
>
> And then: runtime-only annotation (this should be enough), or even
> compile annotation ?
>
> Comments ?
>
> Bye,
> Sandro

Mime
View raw message