lp:etasks

Created by Jan Moringen on 2010-07-13 and last modified on 2010-07-19
Get this branch:
bzr branch lp:etasks
Only Jan Moringen can upload to this branch. If you are Jan Moringen please log in for upload directions.

Related bugs

Related blueprints

Branch information

Owner:
Jan Moringen
Project:
etasks
Status:
Experimental

Recent revisions

22. By Jan Moringen on 2010-07-19

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::initialize-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 on 2010-07-19

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 on 2010-07-19

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::initialize-instance): likewise
  (execution-result-timeout::initialize-instance): likewise
  (execution-result-thread::initialize-instance): likewise

19. By Jan Moringen on 2010-07-19

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::initialize-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 on 2010-07-19

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 on 2010-07-19

Added some examples of tasks in README
* README (Motivation): added some examples of tasks

16. By Jan Moringen on 2010-07-19

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 on 2010-07-13

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 on 2010-07-13

New tests and fixes for tests in macros.el
* macros.el (tasks/macros-test-make-task-macroexpand): 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 on 2010-07-13

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)
This branch contains Public information 
Everyone can see this information.

Subscribers