fix: use behavior from task
This commit is contained in:
parent
02c8e68ced
commit
dfb6ca23c9
1 changed files with 4 additions and 2 deletions
|
@ -85,7 +85,9 @@
|
|||
(progn (async:set-status tsk :stopped) nil)
|
||||
(let ((*self* tsk))
|
||||
(async:set-status tsk :running)
|
||||
(ac-loop tsk (or (funcall bhv msg) bhv))))
|
||||
;(ac-loop tsk (or (funcall bhv msg) bhv))
|
||||
(funcall bhv msg)
|
||||
(ac-loop tsk (async:behavior tsk))))
|
||||
(progn (async:set-status tsk :suspended) bhv))))
|
||||
|
||||
(defmethod send ((tsk async:restartable-task) msg)
|
||||
|
@ -120,7 +122,7 @@
|
|||
(lambda (msg)
|
||||
;(format t "calc ~a ~a~%" val (content msg))
|
||||
(destructuring-bind (fn &optional param) (content msg)
|
||||
(funcall fn msg val param))))
|
||||
(become (funcall fn msg val param)))))
|
||||
|
||||
(defun plus (msg val param)
|
||||
(calculator (+ val param)))
|
||||
|
|
Loading…
Add table
Reference in a new issue