async-limiter 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/async/limiter/concurrent.rb +2 -2
- data/lib/async/limiter/version.rb +1 -1
- data/lib/async/limiter/window.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cdf40ab309d5d7b7ca00fb0dcaedb33b70a1fca2d64beda3372315e15c010cb
|
4
|
+
data.tar.gz: 11d3b4dfb522dd797fceccf3584d1a8cf09754242243dd9691fde4e21f3135d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b24f90a04704a5bcb01147d801b00ec58b96f22d853a7edbde6357f115fc3e903b57602609c9c2be8e622908eb75e1f6cfd21919e555616b6f6178d2380f55e7
|
7
|
+
data.tar.gz: 29c23c6e2868214742540be7e9aeb4678eb9f9ff9dd4625e8eab41f129db05b459f1e4a053245015876fc9086b6cadfc78159890f2493e06ca6824ab70f708c9
|
data/lib/async/limiter/window.rb
CHANGED
@@ -15,7 +15,7 @@ module Async
|
|
15
15
|
attr_reader :lock
|
16
16
|
|
17
17
|
def initialize(limit = 1, type: :fixed, window: 1, parent: nil,
|
18
|
-
burstable: true, lock: true)
|
18
|
+
burstable: true, lock: true, queue: [])
|
19
19
|
@count = 0
|
20
20
|
@input_limit = @limit = limit
|
21
21
|
@type = type
|
@@ -24,7 +24,7 @@ module Async
|
|
24
24
|
@burstable = burstable
|
25
25
|
@lock = lock
|
26
26
|
|
27
|
-
@waiting =
|
27
|
+
@waiting = queue
|
28
28
|
@scheduler_task = nil
|
29
29
|
|
30
30
|
@window_frame_start_time = NULL_TIME
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: async-limiter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Sutic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: async
|