evaera / roblox-lua-promise

Promise implementation for Roblox
https://eryn.io/roblox-lua-promise/
MIT License
275 stars 74 forks source link

Stabilize source field #85

Open oltrep opened 2 years ago

oltrep commented 2 years ago

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.