async-limiter 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7cdf40ab309d5d7b7ca00fb0dcaedb33b70a1fca2d64beda3372315e15c010cb
4
- data.tar.gz: 11d3b4dfb522dd797fceccf3584d1a8cf09754242243dd9691fde4e21f3135d5
3
+ metadata.gz: 974ccf48a69e44da7a7ae3d5908d68376ba026cfe8f72430aeda1fdb8b95966e
4
+ data.tar.gz: bf910237393a4fcd04e91fa1160d1d4d44993f5de73bc1c8e86b31ba6c98db7b
5
5
  SHA512:
6
- metadata.gz: b24f90a04704a5bcb01147d801b00ec58b96f22d853a7edbde6357f115fc3e903b57602609c9c2be8e622908eb75e1f6cfd21919e555616b6f6178d2380f55e7
7
- data.tar.gz: 29c23c6e2868214742540be7e9aeb4678eb9f9ff9dd4625e8eab41f129db05b459f1e4a053245015876fc9086b6cadfc78159890f2493e06ca6824ab70f708c9
6
+ metadata.gz: e1bf656e0d8f82bf460f64d657ad17ab9fedda4f06b335036448312e81c30e3cb9c438642aef86a704c25401563361a39f5b7258eb8ec7123bc10f719459db90
7
+ data.tar.gz: a367575c970cf6e40723f53bbc776cf70fe88488d36dddb755b21c625dcc133ad84c812fbc8aa54ee0cdc202ddc50f96cc76a75c8e78f4ad18017459f2b5ed4a
@@ -1,5 +1,5 @@
1
1
  module Async
2
2
  module Limiter
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -78,6 +78,14 @@ module Async
78
78
  end
79
79
 
80
80
  @window_frame_start_time = current_time
81
+
82
+ return unless block_given?
83
+
84
+ begin
85
+ yield
86
+ ensure
87
+ release
88
+ end
81
89
  end
82
90
 
83
91
  def release
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: async-limiter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Sutic