How to implement Timeout function

Saigon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Aug 27 08:56:14 PDT 2017


Hi,

Can I have Timeout function like this one [1] in Ruby? I want to 
check if a TCP service is running, and the check would return 
error if timeout occurs.

Thanks a lot

[1] https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb


More information about the Digitalmars-d-learn mailing list