It seems like send and share Element between threads and call its api from different thread is fine.
add Send and Sync to Element will allow code like:
It's much easier to write worker thread.
Above code works fine on my simple project, but I haven't test other api. How should I test all those api? any suggestion?
It seems like send and share
Element
between threads and call its api from different thread is fine. addSend
andSync
toElement
will allow code like:It's much easier to write worker thread. Above code works fine on my simple project, but I haven't test other api. How should I test all those api? any suggestion?