Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 0c5da04

Browse files
JiaLiPassionmhevery
authored andcommitted
fix(doc): fix #793, fix confuse bluebird patch doc (#794)
1 parent b92b6e3 commit 0c5da04

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

NON-STANDARD-APIS.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,20 @@ Browser Usage:
4242

4343
After those steps, window.Promise will become a ZoneAware Bluebird Promise.
4444

45-
Node Usage:
45+
Node Sample Usage:
4646

4747
```
48-
require('zone-node.js');
48+
require('zone.js');
4949
const Bluebird = require('bluebird');
50-
require('zone-bluebird.js');
50+
require('zone.js/dist/zone-bluebird');
5151
Zone[Zone['__symbol__']('bluebird')](Bluebird);
52+
Zone.current.fork({
53+
name: 'bluebird'
54+
}).run(() => {
55+
Bluebird.resolve(1).then(r => {
56+
console.log('result ', r, 'Zone', Zone.current.name);
57+
});
58+
});
5259
```
5360

5461
In NodeJS environment, you can choose to use Bluebird Promise as global.Promise

0 commit comments

Comments
 (0)