Thanks to visit codestin.com
Credit goes to github.com

Skip to content

app.js/agent.js 支持返回一个 promise #51

@popomore

Description

@popomore
// app.js
module.exports = app => new Promise(resolve => {
   doAsync(resolve);
});

or

module.exports = async function() {
  await doAsync();
};

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions