go-asynctask

Simple mimic of async/await for those come from C# world, now you can Cancel(), Wait() on a go routine.

MIT License

Stars
54

Bot releases are hidden (Show)

go-asynctask - docs update Latest Release

Published by haitch 2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/Azure/go-asynctask/compare/v1.7.0...v1.7.1

go-asynctask - v1.7.0

Published by haitch 9 months ago

What's Changed

  • use go 1.21

Full Changelog: https://github.com/Azure/go-asynctask/compare/v1.6.0...v1.7.0

go-asynctask - remove restriction on return pointer value of TypeParameter

Published by haitch 11 months ago

  • bump golang version to 1.20
  • use sync.RWMutex to replace sync.Mutex
  • minor update to readme
go-asynctask - Add WaitAny

Published by Xinyue-Wang over 1 year ago

Add WaitAny to this package:
WaitAny will block current thread til any of task completed.
If FailOnAnyError is set, first error from any tasks passed in will be returned

go-asynctask - asynctask v1.4.0

Published by haitch over 1 year ago

  • go mod update to 1.18 (result to minor version bump 1.4)
  • fix a bug where waitAll could send on closed channel
go-asynctask - fix waitAll stuck on empty waitables

Published by haitch almost 2 years ago

go-asynctask - afterBoth to merge 2 future input

Published by haitch almost 2 years ago

go-asynctask - after both, after all, actionToFunc

Published by haitch almost 2 years ago

go-asynctask - after both, after all, actionToFunc

Published by haitch almost 2 years ago

after both
after all
actionToFunc

go-asynctask - after both, after all

Published by haitch about 2 years ago

pre-release for after both, after all.

go-asynctask - race safe

Published by haitch about 2 years ago

now this package is safe when running go test -race

go-asynctask - v1.1.1 AfterAll{3,4,5}

Published by haitch over 2 years ago

Introduce AfterAll{3,4,5} for easy task chaining.

go-asynctask - v1.1.0-alpha

Published by haitch over 2 years ago

go-asynctask - v1.0.0 - use go generic

Published by haitch over 2 years ago

Now using go generics, but this will break previous version.

go-asynctask - continueWith

Published by haitch about 4 years ago

go-asynctask - introduce waitAll

Published by haitch over 4 years ago

go-asynctask - bug fix

Published by haitch over 4 years ago

fix a panic bug while check nil error pointer

go-asynctask - handles nil pointer error

Published by haitch over 4 years ago

  • handles nil pointer error
  • NewCompletedTask returns a completed task
go-asynctask -

Published by haitch over 4 years ago