Bradleycorn
08/02/2023, 1:54 PMfun doSomeWork(withValue: Int, scope: CoroutineScope)
How would I call this from my swift code?
More Context: In my swift code I have a Task
, and I’d like to doSomeWork
within the “scope” of the taskAndrew Reed
08/03/2023, 10:33 AMfun doSomeWork(withValue: Int) {
doSomeWork(withValue,CoroutineScope(Dispatchers.Default))
}
And make the initial fun private.Andrew Reed
08/03/2023, 10:34 AMCoolFileKt.shared.doSomeWork(123)