Join Slack
Powered by
Is there a way to create a suspending variable in ...
# coroutines
a
Atul Gupta
08/18/2024, 5:05 PM
Is there a way to create a suspending variable in coroutine like? Most probably not but is there KEEP around for this discussion?
Copy code
suspending var a: Int get = TODO() set() = TODO()
d
Daniel Pitts
08/18/2024, 6:55 PM
No. You have to write wrapper methods instead.
a
Adam S
08/18/2024, 7:11 PM
https://youtrack.jetbrains.com/issue/KT-15555/Support-suspend-get-set-of-properties
thank you color
1
3
Views
Open in Slack
Previous
Next