Answer the question
In order to leave comments, you need to log in
Synchronously return result of callback'a?
Hey!
There is a problem, I need to write a synchronous wrapper for an asynchronous method
def process(scope: AnyRef):AnyRef = {
someCheck.report(scope.toString, { result =>
// Вот тут каким-то хитрым способом мне нужно вернуть результат
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question