zaifres class : IsCompleted getter

Description

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

Syntax

zaifresInstance.IsCompleted

Arguments

None

Return value

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

Sample code

1:

zaifapi zaifapiIns = new zaifapi();

2:

zaifres zaifresIns = zaifapiIns.Ticker("btc_jpy"); // Public Api. Asynchronous request.

3:

while(true)

4:

if(zaifresIns.IsCompleted)

5:

string jsonStr = zaifresIns.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.