mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-24 11:39:46 -05:00
gnu: Add emacs-promise.
* gnu/packages/emacs-xyz.scm (emacs-promise): New variable.
This commit is contained in:
parent
074d033a55
commit
d53ee6bcd2
1 changed files with 31 additions and 0 deletions
|
@ -25049,3 +25049,34 @@ (define-public emacs-iter2
|
||||||
@code{iter-next}) are intentionally not duplicated: just use the ones from the
|
@code{iter-next}) are intentionally not duplicated: just use the ones from the
|
||||||
original package.")
|
original package.")
|
||||||
(license license:gpl3+)))
|
(license license:gpl3+)))
|
||||||
|
|
||||||
|
(define-public emacs-promise
|
||||||
|
(package
|
||||||
|
(name "emacs-promise")
|
||||||
|
(version "1.1")
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/chuntaro/emacs-promise")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
|
(sha256
|
||||||
|
(base32 "1xb34zdbwjvahfhycjphdkm925kgd22dr298c57hwxza4ljc2hxj"))))
|
||||||
|
(build-system emacs-build-system)
|
||||||
|
(home-page "https://github.com/chuntaro/emacs-promise")
|
||||||
|
(synopsis "Promises/A+ for Emacs")
|
||||||
|
(description "This is a simple implementation of Promises/A+.
|
||||||
|
|
||||||
|
This implementation ports the following Promises/A+ features
|
||||||
|
faithfully. See @url{https://github.com/then/promise}.
|
||||||
|
|
||||||
|
@itemize
|
||||||
|
@item The same API as the JavaScript version of Promise can be used.
|
||||||
|
@item It has all the @code{then}, @code{catch}, @code{resolve}, @code{reject},
|
||||||
|
@code{all}, @code{race}, etc.
|
||||||
|
@item It supports \"thenable\".
|
||||||
|
@item It supports \"Inheritance of Promise\".
|
||||||
|
@item It supports \"rejection-tracking\".
|
||||||
|
@end itemize\n")
|
||||||
|
(license license:gpl3+)))
|
||||||
|
|
Loading…
Reference in a new issue