Login
You're viewing the mastodonapp.uk public feed.
  • Oct 20, 2026, 5:57 PM

    Hmm, which should be preferred?

    new Promise((resolve) => { object.method(resolve); }).then(...)

    or

    class {
    method(){
    return new Promise((resolve) => (...));
    }
    }

    object.method().then(...)

    💬 0🔄 0⭐ 0