Im trying to fix this from a very long time.
I can not understand what to pass to this function in place of "(String) -> void" as it was supposed to return a string :
var result = myobj.createData(request: request, with: (String) -> void)
The above code is calling the following function:
func createData(request:Crudpb_CreateRequest, with completion: @escaping (String) -> Void) {
    DispatchQueue.main.async {
        self.response = try! self.client.create(request)
        completion(self.response.result)
    }
}
 
    