We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
假设我的插件需要 promise 的来返回一个实例,貌似现在 addSingleton 是不支持的,请问我要怎么解决?
module.exports = app => { app.addSingleton('mysql', createMysql); } async function createMysql(config, app) { //... return await getClient(); }
The text was updated successfully, but these errors were encountered:
我考虑一下吧
Sorry, something went wrong.
#710 我之前也提了一个类似的问题,要是能支持async的就太好了
@cuyl 谢谢,我先用你这个 issue 里提到的解决翻案吧
#2392
dead-horse
No branches or pull requests
假设我的插件需要 promise 的来返回一个实例,貌似现在 addSingleton 是不支持的,请问我要怎么解决?
The text was updated successfully, but these errors were encountered: