Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sbragagnolo authored Oct 20, 2016
1 parent a403a89 commit 6f6964e
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,34 @@ system pwd entries do: [ :entry |
].
```
Reference
-------
TODO
#### Asking for an asynchrouns call!
```smalltalk
#!/usr/bin/scale
| futurels |
futurels := system callAsync: 'sleep 2 && ls -l'.
futurels onSuccessDo: [ :ls | system stdout << ls ].
system stdout << 'just after the future call';cr.
```
#### Downloading new images, and using options :)
```smalltalk
#!/usr/bin/scale
| version |
version := (system arguments optionAt: #v ifAbsent: [ 50 ]) asInteger.
system stdout << 'Downloading ' << version asString << ' into: ' << system pwd fullName; flush.
system loadPharo: version into: system pwd.
```
Loading
-------
Expand Down

0 comments on commit 6f6964e

Please sign in to comment.