sass-embedded 1.69.6-x86_64-darwin → 1.70.0-x86_64-darwin

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.
@@ -1,41 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Sass
4
- class Compiler
5
- # The {ResilientDispatcher} class.
6
- #
7
- # It recovers from failures and continues to function.
8
- class ResilientDispatcher
9
- def initialize(dispatcher_class)
10
- @dispatcher_class = dispatcher_class
11
- @dispatcher = @dispatcher_class.new
12
- @mutex = Mutex.new
13
- end
14
-
15
- def close(...)
16
- @mutex.synchronize do
17
- @dispatcher.close(...)
18
- end
19
- end
20
-
21
- def closed?(...)
22
- @mutex.synchronize do
23
- @dispatcher.closed?(...)
24
- end
25
- end
26
-
27
- def connect(...)
28
- @dispatcher.connect(...)
29
- rescue Errno::EBUSY
30
- @mutex.synchronize do
31
- @dispatcher.connect(...)
32
- rescue Errno::EBUSY
33
- @dispatcher = @dispatcher_class.new
34
- @dispatcher.connect(...)
35
- end
36
- end
37
- end
38
-
39
- private_constant :ResilientDispatcher
40
- end
41
- end