Skip to content

Commit

Permalink
Add yieldAndRun API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
warunalakshitha committed Oct 12, 2024
1 parent c329399 commit 666a722
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ org.gradle.caching=true
group=io.ballerina
version=1.3.1-SNAPSHOT

ballerinaLangVersion=2201.10.0-20241007-143200-6b69ca80
ballerinaLangVersion=2201.10.0-20241011-161100-51978649
githubSpotbugsVersion=6.0.18
githubJohnrengelmanShadowVersion=8.1.1
underCouchDownloadVersion=5.4.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static void sleep(Environment env, long delayMillis) {
env.yieldAndRun(() -> {
try {
Thread.sleep(delayMillis);
return null;
} catch (InterruptedException e) {
throw ErrorCreator.createError(StringUtils.fromString("error occurred during sleep"), e);
}
Expand Down

0 comments on commit 666a722

Please sign in to comment.