You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The weird callback thing is just ugly. Instead, consider something cleaner:
constpluto=require('pluto')constbind=pluto()constmyInstance={}pluto.bind('myInstance').toInstance(myInstance)// and other bindingsconstpromise=pluto.get('myInstance')// get(...) must return a promise to support asyncpromise.then((result)=>{t.is(result,myInstance)})
The text was updated successfully, but these errors were encountered:
The weird callback thing is just ugly. Instead, consider something cleaner:
The text was updated successfully, but these errors were encountered: