Skip to content

Commit 77d0cdc

Browse files
committed
add waitForData for socket stream
1 parent c35546a commit 77d0cdc

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Extension { #name : 'ReadWriteStream' }
2+
3+
{ #category : '*PharoLanguageProtocol' }
4+
ReadWriteStream >> waitForData [
5+
[ position < readLimit ] whileFalse
6+
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Extension { #name : 'SocketStream' }
2+
3+
{ #category : '*PharoLanguageProtocol' }
4+
SocketStream >> waitForData [
5+
6+
[ self isDataAvailable ] whileFalse
7+
]

0 commit comments

Comments
 (0)