https://kotlinlang.org logo
#coroutines
Title
# coroutines
p

pakoito

12/21/2018, 1:12 AM
given there’s no thread switching or anything really asynchronous in my logic
looks overkill here too unless you have something that does IO in removeAllCookies and setCookie
g

gildor

12/21/2018, 3:02 AM
removeCookie operation doesn’t do any IO, but this opearion is asyncronous, so without callback you cannot be sure that it completed
p

pakoito

12/21/2018, 9:51 AM
what does asynchronous mean in this context? jump thread? IO?
g

gildor

12/21/2018, 9:51 AM
Just waits when actual cookie value will be updated in webview
Not sure about threds/IO, maybe, but it’s implementation detail, most important async interface allows you to know when cookie is actually updated
4 Views