Promises have an accessible, yet considered private by convention, _source field to them. It be great if the library could 'stabilize' it by removing the underscore or adding a method like getSource to the API.
A use case for that could be a test runner that keeps track of running promises and want to print out the source of each one to locate them.
Promises have an accessible, yet considered private by convention,
_source
field to them. It be great if the library could 'stabilize' it by removing the underscore or adding a method likegetSource
to the API.A use case for that could be a test runner that keeps track of running promises and want to print out the source of each one to locate them.