Rx.js, handling Chrome Extension webrequest API callback functions
问题 I'm trying to use Rx.js to handle the flow of Chrome extension webrequest API. Each webrequest addListener() call takes a mandatory callback function as the first parameter. This sends request objects to the function. However, the callback can return a webRequest.BlockingResponse that determines the further life cycle of the request. I'm struggling to handle the blocking response as part of the observable. This code works well for examining all image requests, for example