I want to achieve the following in my code
fun addAsync(num1: Int, num2: Int): Task<Int> {
var result: Task<Int> = //Task.fromResult(add(num1,num2))
return result
}
fun add(num1: Int, num2:Int): Int {
return num1+num2
}
here i want to know how to create a task from the result the way it is done in C#.