Skip to content

Commit

Permalink
Update undocumented.md
Browse files Browse the repository at this point in the history
  • Loading branch information
familyfriendlymikey authored Aug 10, 2023
1 parent 492d852 commit b308b0e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions content/docs/undocumented.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,17 @@ which takes a callback that will be called every time the property is changed un
let user = new class User
@observable first_name = 'first'
setTimeout(&,100ms) do
user.first_name = 'updated'
setTimeout(&,200ms) do
user.first_name = 'again'
imba.awaits do
console.log user.first_name
user.first_name is 'updated'
def main
setTimeout(&,100ms) do
user.first_name = 'updated'
setTimeout(&,200ms) do
user.first_name = 'again'
await imba.awaits do
console.log user.first_name
user.first_name is 'updated'
main!
```

Notice how it stops logging after the name is `updated`.
Expand Down

0 comments on commit b308b0e

Please sign in to comment.