Task handing library
- Added CancelTask function. It is available only when you add task with CancellationTokenSource.
- Added AddTask function with Task and CancellationTokenSource.
- Bugfix.
- Changed namespace to 'JK.TaskLibrary'.
- Single tone pattern is used. Get instance from TaskManager.Instance.
- Add event function in the event handler OnFinish ex) taskmanager.Onfinish += event;
- Make a Task instance and Add it to the Taskmanager instance. The task starts if it is not begun when it is added in the Taskmanager. ex) taskmanager.AddTask(task);
- When the task is finished the event function is triggered.
- Wait for a task and wait for all tasks are supported.