elisp-latch:Emacs Lisp的承诺和闩锁

时间:2021-05-12 14:57:31
【文件属性】:
文件名称:elisp-latch:Emacs Lisp的承诺和闩锁
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-12 14:57:31
EmacsLisp Emacs Lisp的承诺和闩锁 该软件包(ab)使用accept-process-output和进程提供异步阻塞,从而允许其他函数在当前执行上下文完成之前运行。 所有阻塞都会冻结Emacs的显示,但是计时器和I / O将继续运行。 请谨慎使用。 用法 承诺有deliver和retrieve方法。 ; ; Make promise ( defvar p (make-promise)) ; ; Deliver a value to the promise in 5 seconds. ( run-at-time 5 nil # 'deliver p " Hello, world " ) ; ; Retrieve the value from the promise. This blocks until a value is ; ; delivered. The timer can still
【文件预览】:
elisp-latch-master
----UNLICENSE(1KB)
----.gitignore(9B)
----README.md(2KB)
----latch.el(5KB)
----Makefile(142B)

网友评论