Function sp_io::offchain::http_response_wait
source · [−]pub fn http_response_wait(
ids: &[HttpRequestId],
deadline: Option<Timestamp>
) -> Vec<HttpRequestStatus>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
Expand description
Block and wait for the responses for given requests.
Returns a vector of request statuses (the len is the same as ids).
Note that if deadline is not provided the method will block indefinitely,
otherwise unready responses will produce DeadlineReached
status.
Passing None
as deadline blocks forever.