HttpPromise.succeed

void succeed(T value)

Completes the promise successfully.

Parameters

valueThe result value to deliver to the future.

Throws

HttpException when the promise is invalid or already completed.