Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

After $PutModel and $GetModel return to the Main Thread #7

Closed
smaugho opened this issue Nov 11, 2016 · 0 comments
Closed

After $PutModel and $GetModel return to the Main Thread #7

smaugho opened this issue Nov 11, 2016 · 0 comments
Assignees

Comments

@smaugho
Copy link
Member

smaugho commented Nov 11, 2016

Right now, after a $PutModel or $GetModel is executed, if it was executed in the background, then if you want to make any change in the UI, need to implicitly write the action $UIThread, for instance:

$PutModel(myModel);
$UIThread();
//Do something here in the UI.

But $PutModel knows at priori if the action is executed in the background or not, so, it would be nice to invoke the next runnable in the list of actions already in the UIThread avoiding the errors that would occurs if the programmer doesn't write the $UIThread annotation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant