M
M
max_mara2013-07-19 19:17:26
Scala
max_mara, 2013-07-19 19:17:26

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 =>
       // Вот тут каким-то хитрым способом мне нужно вернуть результат 
    });
  }

How to do it?

Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question