Skip to content

Commit 7df75d1

Browse files
await on the inner log
1 parent 42355f6 commit 7df75d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/sandbox/auto-resume.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ await new Promise((resolve) => setTimeout(resolve, 1000))
110110
const previewHost = sandbox.getHost(3000)
111111
console.log(`Preview URL: https://${previewHost}`)
112112

113-
console.log(`Status before pause: ${sandbox.getInfo().state}`)
113+
console.log(`Status before pause: ${(await sandbox.getInfo()).state}`)
114114
await sandbox.pause()
115-
console.log(`Status after pause: ${sandbox.getInfo().state}`)
115+
console.log(`Status after pause: ${(await sandbox.getInfo()).state}`)
116116
```
117117
```python Python
118118
import time

0 commit comments

Comments
 (0)