paulirotta / Tantalum

Tantalum Cross Platform Library
12 stars 6 forks source link

Refactor Workable / Task / Worker #6

Closed vivainio closed 11 years ago

vivainio commented 11 years ago

It's not clear what the "third party" role of Workable is. If developers are not expected to implement this interface, hide it somewhere.

paulirotta commented 11 years ago

It is a stateless higher performance (and older in the history of the framework, dating back 2 years to version 1) alternative to Task. Workable is a "fire and forget" background task. You can use it, but you can not cancel, join, chain etc.

We could hide or eliminate it, and everything would work. But some things might be a bit slower due to Task overhead (a few lines, a synchronization).

vivainio commented 11 years ago

In the name of simplification, sounds like logical candidate for removal, then

paulirotta commented 11 years ago

Done