Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrdulin/go-promise
Go language implementation of Promise static method in JavaScript.
https://github.com/mrdulin/go-promise
concurrency concurrent-programming go golang javascript promise
Last synced: 2 days ago
JSON representation
Go language implementation of Promise static method in JavaScript.
- Host: GitHub
- URL: https://github.com/mrdulin/go-promise
- Owner: mrdulin
- License: mit
- Created: 2020-09-11T08:56:55.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T03:44:04.000Z (over 2 years ago)
- Last Synced: 2024-06-20T00:43:28.478Z (5 months ago)
- Topics: concurrency, concurrent-programming, go, golang, javascript, promise
- Language: Go
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-promise
[![Go Report Card](https://goreportcard.com/badge/github.com/mrdulin/go-promise)](https://goreportcard.com/report/github.com/mrdulin/go-promise)
[![Coverage Status](https://coveralls.io/repos/github/mrdulin/go-promise/badge.svg?branch=master)](https://coveralls.io/github/mrdulin/go-promise?branch=master)Go language implementation of [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) static method in JavaScript.
In order to use the promise concurrency model for concurrent programming. Friendly for JavaScript programmers.### Features
- [Promise.all()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/all)
- [Promise.allSettled()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/allSettled)
- [Promise.race()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/race)
- [Promise.any()](https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/any)
- [Promise.raceAll()](https://stackoverflow.com/a/48578424/6463558)
- [Promise.some()](http://bluebirdjs.com/docs/api/promise.some.html)Support more Promise extension APIs in the future.
### Testing
```bash
go test -v -race
```