mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
27 lines
803 B
Plaintext
27 lines
803 B
Plaintext
---
|
|
BEFORE<await(data.userInfoShort) timeout=10 name="userInfo1">
|
|
<@then|user|>1</@then>
|
|
<@catch|err|>
|
|
<if(err.name === "TimeoutError")>1-A timeout has occurred!</if>
|
|
</@catch>
|
|
</await>
|
|
<await(data.userInfoShort) timeout=10 name="userInfo2">
|
|
<@then|user|>2</@then>
|
|
<@catch|err|>
|
|
<if(err.name === "TimeoutError")>2-A timeout has occurred!</if>
|
|
</@catch>
|
|
</await>
|
|
<await(data.userInfoLong) timeout=100 name="userInfo3">
|
|
<@then|user|>3</@then>
|
|
<@catch|err|>
|
|
<if(err.name === "TimeoutError")>3-A timeout has occurred!</if>
|
|
</@catch>
|
|
</await>
|
|
<await(data.userInfoLong) timeout=100 name="userInfo4">
|
|
<@then|user|>4</@then>
|
|
<@catch|err|>
|
|
<if(err.name === "TimeoutError")>4-A timeout has occurred!</if>
|
|
</@catch>
|
|
</await>
|
|
AFTER
|
|
--- |