Skip to content
New issue

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

Update promise.md #6

Merged
merged 2 commits into from
Oct 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Update promise.md
  • Loading branch information
frascu authored Oct 2, 2019
commit 4895b7200f409bd1ab41e1877089ab8a38ec6aed
2 changes: 1 addition & 1 deletion docs/promise.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ La classe `Promise` è qualcosa che esiste in molti moderni motori JavaScript e

### Callback style code

In order to fully appreciate promises let's present a simple sample that proves the difficulty of creating reliable Async code with just callbacks. Consider the simple case of authoring an async version of loading JSON from a file. A synchronous version of this can be quite simple:
Al fine di apprezzare appieno le promise presentiamo un semplice esempio che dimostra la difficoltà di creare codice Async affidabile con i soli callback. Si consideri il semplice caso di creare una versione asincrona di caricamento di JSON da un file. Una versione sincrona di questo può essere abbastanza semplice:

```ts
import fs = require('fs');
Expand Down