I may be missing something here, but I'm not seeing a way to get background processing hooked into the fwt ui.
In Java there's the whole deal about only doing UI stuff on the event thread, and if you're in another thread you call invokeLater to have the event thread do an update.
I'm trying to get my head around the Actor stuff, and I get the idea of passing around immutable data, and using UriSpace as a transfer area, and sendLater/sendWhenDone, but the one thing I'm missing is how to tell a widget it's time to go look for new data. Is this something that just hasn't been addressed yet, or am I missing the obvious? again.
andySat 25 Jul 2009
Take a look at Desktop.callAsync. Its used in flux/fan/sidebars/Console.fan if you're looking for an example.
KevinKelley Sat 25 Jul 2009
I may be missing something here, but I'm not seeing a way to get background processing hooked into the fwt ui.
In Java there's the whole deal about only doing UI stuff on the event thread, and if you're in another thread you call
invokeLater
to have the event thread do an update.I'm trying to get my head around the Actor stuff, and I get the idea of passing around immutable data, and using UriSpace as a transfer area, and sendLater/sendWhenDone, but the one thing I'm missing is how to tell a widget it's time to go look for new data. Is this something that just hasn't been addressed yet, or am I missing the obvious? again.
andy Sat 25 Jul 2009
Take a look at Desktop.callAsync. Its used in flux/fan/sidebars/Console.fan if you're looking for an example.
KevinKelley Sat 25 Jul 2009
Oh good, that looks like what I wanted, thanks.