bitbankres class : IsCompleted getter

Description

Gets a value indicating whether the response to the request has returned.

Syntax

bitbankresInstance.IsCompleted

Arguments

None

Return value

ClassDescription
boolA value indicating whether the response to the request has returned.

Sample code

1:

bitbankapi bitbankapiIns = new bitbankapi();

2:

bitbankres bitbankresIns = bitbankapiIns.Ticker("btc_jpy"); // Public Api. Asynchronous request.

3:

while(true)

4:

if(bitbankresIns.IsCompleted)

5:

string jsonStr = bitbankresIns.Result;

6:

break;

7:

endif

8:

// Maybe you should wait here.

9:

endwhile

Notes

Returns true if the response to the request is already returned, otherwise returns false.

Links for reference

None.

Copyright © Cooker All rights reserved.