Can Hyperloop be used to do background work or spawn new threads?

277 views Asked by At

I'm wondering if the Appcelerator Titanium Hyperloop module can be used to spawn new threads or do background work that will not block the main UI thread? In other words, I have an expensive or long-running data processing task but I want to run it on a background thread. Previously Appcelerator Titanium has been single-threaded with no options for spawning new threads. With Hyperloop being able to call directly into native APIs I'm wondering if threads are now possible?

http://labs.appcelerator.com/project/55f74a9f421c44837717716b/Hyperloop-Module

1

There are 1 answers

3
Rene Pot On

Great question.

Currently, when using Hyperloop you WILL have to run the entire app on the Main Thread and threading is currently not possible, so everything will be on the main thread.

I do hope however that it will become a possibility in the future, and I heard it also crossed the minds at Appcelerator. I don't know though what the conclusion on the matter is.

So for now, it won't be possible. In the future, I hope so.

Edit (May 2016): There is a CSPEC currently with a proposal. We might see this in a future release