Calling (update mywidget) from a new thread
- Dominant language
- Common Lisp
- Stars
- 101
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
How to make a new thread aware of the *session* it was created from ?
```lisp
(:input :type "button" :value "Add random task (with (update) called from a different thread)" :onclick
(weblocks/actions:make-js-action
(lambda (&rest args )
(add-task task-list (format nil "~A" (random 1001)))
(bt:make-thread
(lambda ()
(weblocks/dependencies:with-collected-dependencies
(sleep 0.5)
(update task-list) ; ERROR: Session was not created for this request!
))))))
```
complete executable code to illustrate the problem: https://gist.github.com/bamboospirit/e6ad95503ec40d2c7649f4aa14ad4979#file-thr-update-lisp
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.