Cleaned up Task and removed setName() and setCancelled() for cancel()
- Removed initialisation of mExecutor in scheduler if there is only one processor
- Fixed bug in getByIndex()
Signed-off-by:thehutch <52d5ad14@opayq.com>