Skip to content

gems: update async requirement from ~> 1.31.0 to >= 1.31, < 2.25 #398

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github May 5, 2025

Updates the requirements on async to permit the latest version.

Changelog

Sourced from async's changelog.

v2.24.0

  • Ruby v3.1 support is dropped.
  • Async::Wrapper which was previously deprecated, is now removed.

Flexible Timeouts

When {ruby Async::Scheduler#with_timeout} is invoked with a block, it can receive a {ruby Async::Timeout} instance. This allows you to adjust or cancel the timeout while the block is executing. This is useful for long-running tasks that may need to adjust their timeout based on external factors.

Async do
	Async::Scheduler.with_timeout(5) do |timeout|
		# Do some work that may take a while...
	if some_condition
		timeout.cancel! # Cancel the timeout
	else
		# Add 10 seconds to the current timeout:
		timeout.adjust(10)
	# Reduce the timeout by 10 seconds:
	timeout.adjust(-10)
	
	# Set the timeout to 10 seconds from now:
	timeout.duration = 10
	
	# Increase the current duration:
	timeout.duration += 10
end

end

end

v2.23.0

  • Rename ASYNC_SCHEDULER_DEFAULT_WORKER_POOL to ASYNC_SCHEDULER_WORKER_POOL.

Fiber Stall Profiler

After several iterations of experimentation, we are officially introducing the fiber stall profiler, implemented using the optional fiber-profiler gem. This gem is not included by default, but can be added to your project:

$ bundle add fiber-profiler

After adding the gem, you can enable the fiber stall profiler by setting the FIBER_PROFILER_CAPTURE=true environment variable:

$ FIBER_PROFILER_CAPTURE=true bundle exec ruby -rasync -e 'Async{Fiber.blocking{sleep 0.1}}'
Fiber stalled for 0.105 seconds
</tr></table> 

... (truncated)

Commits
  • f30c2f8 Bump minor version.
  • 53c447e Add more flexible timeout. (#386)
  • a5b59e1 Remove Async::Wrapper.
  • f1484a1 Drop support for Ruby v3.1 and related compatibility shims.
  • 437515e Add Ruby v3.4 to the test matrix.
  • 8d63d7f Correct comment about when blocking_operation_wait() was released (#380)
  • 47929b4 Bump patch version.
  • 6bed43f Remove GitS from readme.
  • 64e2ae8 Remove unused variable error
  • b1a0472 Fixed a tiny typo in the debugging docs (#377)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [async](https://github.com/socketry/async) to permit the latest version.
- [Release notes](https://github.com/socketry/async/releases)
- [Changelog](https://github.com/socketry/async/blob/main/releases.md)
- [Commits](socketry/async@v1.31.0...v2.24.0)

---
updated-dependencies:
- dependency-name: async
  dependency-version: 2.24.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants