lp:etasks
- Get this branch:
- bzr branch lp:etasks
Branch information
Recent revisions
- 22. By Jan Moringen
-
Improved result handling for idle and timeout in execution.el
* execution.el (execution-result- timer): renamed
`execution-result- idle' -> `execution- result- timer'
(execution-result- idle::initializ e-instance) : removed
(execution-result- idle::future- done-p) : removed
(execution-result- idle::future- get): actually respect timeout
argument
(execution-result- idle::future- cancel) : cosmetic changes
(execution-result- timeout) : removed
(execution-result- timeout: :initialize- instance) : removed
(execution-result- timeout: :future- done-p) : removed
(execution-result- timeout: :future- get): removed
(execution-result- timeout: :future- cancel) : removed
(tasks-execution- make-timer- lambda) : new function; construct a
lambda expression suitable for use as time function
(execution-idle::execution -execute) : use
`tasks-execution- make-timer- lambda'
(execution-idle::execution -timeout) : likewise - 21. By Jan Moringen
-
Changed -blocking-
result: :initialize- instance to :after in execution.el
* execution.el (execution-blocking- result: :initialize- instance after):
changed to :after method - 20. By Jan Moringen
-
Added hooks to result objects in execution.el
* execution.el (header): added version 0.2 to history section
(execution-result: :done-hook) : new slot; stores handler function for
done hook
(execution-result: :signal- hook): new slot; stores handler function
for signal hook
(execution-blocking- result: :initialize- instance) : run done hook or
error hook after executing the task
(execution-result- idle::initializ e-instance) : likewise
(execution-result- timeout: :initialize- instance) : likewise
(execution-result- thread: :initialize- instance) : likewise - 19. By Jan Moringen
-
Handle errors during task execution by storing in execution.el
* execution.el (execution-result: :error) : new slot; stores error data
that is generated during execution
(execution-result: :has-result- p): new method; check for result
(execution-result: :has-error- p): new method; check for error data
(execution-result: :future- done-p) : use `has-result-p' and
`has-error-p'
(execution-blocking- result: :initialize- instance) : store signaled
errors into error slot of result object
(execution-result- idle::initializ e-instance) : likewise
(execution-result- timeout: :initialize- instance) : likewise
(execution-result- thread: :initialize- instance) : likewise
* TODO (how to handle signals): marked as DONE - 18. By Jan Moringen
-
Added generic functions for future protocol in execution.el
* execution.el (future-done-p): new generic function; check whether
future is done
(future-get): new generic function; retrieve result of future
(future-cancel): new generic function; cancel a running future - 17. By Jan Moringen
-
Added some examples of tasks in README
* README (Motivation): added some examples of tasks - 16. By Jan Moringen
-
Added some new item in TODO
* TODO (task finish hook): added some thoughts
(how to handle signals): new item
(how to collect errors): new item
(task hierarchy): new item - 15. By Jan Moringen
-
Added two new unit tests to tasks.el
* tasks.el (tasks/tasks-test- task-compute- task-lambda) : new test; test
`compute-task-lambda' method for `task' class
(tasks/tasks-test- cooperative- cancelable- task-compute- lambda) : new
test; test `compute-task-lambda' method for
`cooperative-cancelable- task' class - 14. By Jan Moringen
-
New tests and fixes for tests in macros.el
* macros.el (tasks/macros- test-make- task-macroexpan d): fixed call to
`tasks-make-task'
(tasks/macros- test-do- as-task- macroexpand) : new test; test
macroexpansions of `do-as-task'
(tasks/macros- test-do- as-task- smoke): fixed missing paren
(tasks/macros- test-run- as-task- macroexpand) : new test; test
macroexpansions of `run-as-task' - 13. By Jan Moringen
-
Renamed variable to tasks-execution
-classes- alist in execution.el
* execution.el (tasks-execution- classes- alist): renamed
`execution-classes- alist' -> `tasks- execution- classes- alist'
(tasks-execution- select- class): changed reference to
`tasks-execution- classes- alist'
(tasks-execution- select- class): likewise
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)