File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,22 +14,22 @@ def nread
14
14
15
15
def ready?
16
16
ensure_open_and_readable
17
- Truffle ::IOOperations . poll ( self , Truffle :: IOOperations :: POLLIN , 0 ) > 0
17
+ Truffle ::IOOperations . poll ( self , IO :: READABLE , 0 ) > 0
18
18
end
19
19
20
20
def wait_readable ( timeout = nil )
21
21
ensure_open_and_readable
22
- Truffle ::IOOperations . poll ( self , Truffle :: IOOperations :: POLLIN , timeout ) > 0 ? self : nil
22
+ Truffle ::IOOperations . poll ( self , IO :: READABLE , timeout ) > 0 ? self : nil
23
23
end
24
24
25
25
def wait_writable ( timeout = nil )
26
26
ensure_open_and_writable
27
- Truffle ::IOOperations . poll ( self , Truffle :: IOOperations :: POLLOUT , timeout ) > 0 ? self : nil
27
+ Truffle ::IOOperations . poll ( self , IO :: WRITABLE , timeout ) > 0 ? self : nil
28
28
end
29
29
30
30
def wait_priority ( timeout = nil )
31
31
ensure_open_and_readable
32
- Truffle ::IOOperations . poll ( self , Truffle :: IOOperations :: POLLPRI , timeout ) > 0 ? self : nil
32
+ Truffle ::IOOperations . poll ( self , IO :: PRIORITY , timeout ) > 0 ? self : nil
33
33
end
34
34
35
35
You can’t perform that action at this time.
0 commit comments