Fixed async compilation (#146)

We need different call back strategies for continuous mode
and non continuous mode.