2
0
mirror of https://github.com/hibiken/asynq.git synced 2024-09-20 11:05:58 +08:00
This commit is contained in:
Ken Hibino 2020-05-08 06:19:48 -07:00
parent 44aad7f037
commit 26b78136ba
2 changed files with 7 additions and 0 deletions

View File

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.8.3] - 2020-05-08
### Added
- `Close` method is added to `Client`.
## [0.8.2] - 2020-05-03 ## [0.8.2] - 2020-05-03
### Fixed ### Fixed

View File

@ -147,6 +147,7 @@ const redisAddr = "127.0.0.1:6379"
func main() { func main() {
r := asynq.RedisClientOpt{Addr: redisAddr} r := asynq.RedisClientOpt{Addr: redisAddr}
c := asynq.NewClient(r) c := asynq.NewClient(r)
defer c.Close()
// ---------------------------------------------------- // ----------------------------------------------------
// Example 1: Enqueue task to be processed immediately. // Example 1: Enqueue task to be processed immediately.