Skip to content
This repository has been archived by the owner on Sep 21, 2021. It is now read-only.

Allow batched worker tasks and generated sourcemap range lookup #1029

Merged

Conversation

loganfsmyth
Copy link
Contributor

Associated Issue: firefox-devtools/debugger#5561

Summary of Changes

  • Allow multiple synchronous calls to an async task to be batched into a single postMessage
  • Add a new function for getting the generated ranges for a given original location

}
})).then(results => {
self.postMessage({ id, results });
});
};
}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

None of this updates streamingWorkerHandler below here because as far as I can tell it is already incompatible with the existing .task function in the general case. .task only listens for a single message, so it can't be used alongside streamingWorkerHandler as is.

@jasonLaster jasonLaster merged commit 7ae9678 into firefox-devtools:master Apr 12, 2018
@loganfsmyth loganfsmyth deleted the sourcemap-debounced-dispatch branch April 12, 2018 18:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants