Hello! How can I declare a function ```override su...
# coroutines
a
Hello! How can I declare a function
Copy code
override suspend fun save(something: Something) = withContext(Dispatchers.Default) {
   doWork()
}
in the interface?
g
Copy code
interface Savable {
   suspend fun save(something: Something)
}
a
brrr, sorry for the stupid question... Intellij underlined in red because the
save
method in
jpa model
returns the saved object. I need a cup of coffee 🙂
g
ah, yeah, you have to specify also return type if doWork() has it