

Defining an IO Context in Kotlin
source link: https://www.youtube.com/watch?v=l0mCgHhFkP4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

24 Comments
Read more
You could make `retryingPricing` marked with `context(IO)` but you'll have to change it to a computed property like this:
`context(IO) private val retryingPricing get() = retry(..., { pricing(magic(), it) } )` And `magic` will actually get its context from the context of whoever calls the `retryingPricing` property, thus there'd be no need to change the signature of `retry`
Read more
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK