Closed edsko closed 1 year ago
I guess that setup
and teardown
should move into the inside of forkIO
.
If you agree, would you send a PR?
Yes, I think at least the teardown
should move inside. Will send a PR.
forkFinally
would be nice.
Yes, I actually introduced forkManaged :: Manager -> IO () -> IO ()
in my WIP branch. Just figuring out one detail at the moment, will submit a PR soon.
PR at #74.
It's entirely possible I just misunderstand, but I think there is a bug in
sendRequest
:(this was introduced in #47). The call to
forkIO
will return immediately, so that call toteardown
will happen immediately.