async-background 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b409d6d47d2a0fe38a1fdc22c77beb20051563dcd8aa382b394414dc08735a5
4
- data.tar.gz: 1bb9c298d88b15369c45abd76555e319d2afb0f5e20895f470af44fe85b0eb18
3
+ metadata.gz: 49376bad9260678399dcf092b9d9f10bb86d834793937b00d2b32beac9b40a92
4
+ data.tar.gz: 1af4b44f91b2e06b6eee54d4916236c57ca70f0e61219aad4560b47ea5c5397d
5
5
  SHA512:
6
- metadata.gz: 596ea84aeab91edae0d85c8361107fbbcbf431e0f76e11863958b7200db1d16258ae1fe73189f433042faa1fbf59ffe87d1e72484c4ca2da16fd45a23cf307f6
7
- data.tar.gz: 3d48231e0018d95a707aff6eceeb569eb85565c251f026afb4b592c418300eeed84cb37c4c655d1520d7bed31d461551cb9be387c73e207912c44a61201059aa
6
+ metadata.gz: 8b0dfde6d86f7198912c0aa106f2abb96fd6e7ff88052a0005c8c49cf7171ce16ad2ba9845f106ae5afa7b623d9c4846082be015e3dfb00482680b172fe20944
7
+ data.tar.gz: 2bf30304fb376f90631df8dc1e3ac5d369653095a36dc686485457412fad3025b834ee71b0fe17cf92ae743c4f30c0f9492e296341153cc17299ac8a33ce3fe3
@@ -28,7 +28,7 @@ module Async
28
28
 
29
29
  def run
30
30
  Async do |task|
31
- while true
31
+ loop do
32
32
  entry = heap.peek
33
33
  break unless entry
34
34
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Async
4
4
  module Background
5
- VERSION = '0.2.3'
5
+ VERSION = '0.2.4'
6
6
  end
7
7
  end
@@ -6,14 +6,6 @@ require 'console'
6
6
  require 'fugit'
7
7
 
8
8
  require_relative 'background/version'
9
-
10
- # Warn if using an unstable version
11
- unless ['0.1.0', '0.2.2', '0.2.3'].include?(Async::Background::VERSION)
12
- warn "\n⚠️ WARNING: Async::Background v#{Async::Background::VERSION} is not a stable version!"
13
- warn "⚠️ Stable versions are: 0.1.0, 0.2.2, and 0.2.3"
14
- warn "⚠️ For production use, pin to one of these versions in your Gemfile\n\n"
15
- end
16
-
17
9
  require_relative 'background/min_heap'
18
10
  require_relative 'background/entry'
19
11
  require_relative 'background/runner'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-background
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Hajdarov
@@ -80,11 +80,10 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.12'
83
- description: "[STABLE VERSIONS: 0.1.0, 0.2.2, 0.2.3] A production-grade lightweight
84
- scheduler built on top of Async. Single event loop with min-heap timer, skip-overlapping
85
- execution, jitter, monotonic clock intervals, semaphore concurrency control, and
86
- deterministic worker sharding. Designed for Falcon but works with any Async-based
87
- application."
83
+ description: A production-grade lightweight scheduler built on top of Async. Single
84
+ event loop with min-heap timer, skip-overlapping execution, jitter, monotonic clock
85
+ intervals, semaphore concurrency control, and deterministic worker sharding. Designed
86
+ for Falcon but works with any Async-based application.
88
87
  email:
89
88
  - romnhajdarov@gmail.com
90
89
  executables: []