Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Feb 1, 2024
1 parent 04e184e commit e5d3190
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Expand Up @@ -78,13 +78,10 @@ const error = (op) => (data) => {
op.abort();
};

operator
.copy(from, to, names)
.then((op) => {
op.on('progress', progress);
op.on('end', end(op));
op.on('error', error(op));
});
const op = await operator.copy(from, to, names);

op.on('progress', progress);
op.on('end', end(op)); op.on('error', error(op));
```

## Server
Expand Down

0 comments on commit e5d3190

Please sign in to comment.