Join Slack
Powered by
I also want to write HTTP 400 errors into a file (...
# announcements
b
Bernhard
11/28/2018, 10:13 AM
I also want to write HTTP 400 errors into a file (buffered writer) so I guess I need a mutex
c
christophsturm
11/28/2018, 10:16 AM
you could also write it to a concurrent queue and then write to the file from there. or theres a more coroutine way to do it
d
Dias
11/28/2018, 10:18 AM
have a bunch of coroutines write to a channel, and then buffered writer to read from the channel?
Dias
11/28/2018, 10:21 AM
and run couroutines in a runBlocking block if you want to block until all http calls are complete
2
Views
Open in Slack
Previous
Next