Thread overview |
---|
August 27, 2017 How to implement Timeout function | ||||
---|---|---|---|---|
| ||||
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 |
August 27, 2017 Re: How to implement Timeout function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Saigon | On Sunday, 27 August 2017 at 15:56:14 UTC, Saigon wrote:
> 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
Can it be blocking?
|
August 27, 2017 Re: How to implement Timeout function | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jerry | On Sunday, 27 August 2017 at 15:56:55 UTC, Jerry wrote:
> On Sunday, 27 August 2017 at 15:56:14 UTC, Saigon wrote:
>> 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
>
> Can it be blocking?
Yes it can in my case.
|
Copyright © 1999-2021 by the D Language Foundation