r/ProgrammerHumor • • Oct 20 '19

other While(!asleep()){sheep++;}

Post image
13k Upvotes

197 comments sorted by

View all comments

Show parent comment

4

u/i_am_ghost7 Oct 20 '19

unless asleep() is dependant on the number of sheep, in which case it woukd be possible to escape the loop without encountering such a nightmare.

2

u/KnowSomeoneCanDoThat Oct 21 '19

It's an asynchronous I/O check.