fix that instead of interval we set a timeout after we get result (#3169)
fix that instead of interval we set a timeout after we get result (#3169)

* fix that instead of interval we set a timeout after we get result

* add recovery from timeouts and error in API

FlixMaster/mwEmbed,omridevk/mwEmbed,slash851/mwEmbed,slash851/mwEmbed,alexmilk/mwEmbed,panda-os/mwEmbed,omridevk/mwEmbed,bordar/mwEmbed,FlixMaster/mwEmbed,omridevk/mwEmbed,kaltura/mwEmbed,bordar/mwEmbed,panda-os/mwEmbed,panda-os/mwEmbed,slash851/mwEmbed,kaltura/mwEmbed,alexmilk/mwEmbed,omridevk/mwEmbed,kaltura/mwEmbed,FlixMaster/mwEmbed,bordar/mwEmbed,kaltura/mwEmbed,bordar/mwEmbed,FlixMaster/mwEmbed,slash851/mwEmbed,panda-os/mwEmbed,alexmilk/mwEmbed,alexmilk/mwEmbed