async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

Update async usages in README and examples to shutdown properly

Open michaelmcguire opened this issue 1 year ago • 1 comments

Motivation:

In several examples of async/await support, the call to shutdown() on the HTTPClient are made with await but do not call get() on the EventLoopFuture.

Modifications:

Add the .get() call in four locations that need it.

Result:

After fixing this, the client should properly get closed down and there are no longer warnings emitted by the compiler.

michaelmcguire avatar Jan 23 '24 03:01 michaelmcguire

@swift-server-bot test this please

dnadoba avatar Jan 23 '24 14:01 dnadoba