windjammer 0.47.0

A simple language inspired by Go, Ruby, and Elixir that transpiles to Rust - 80% of Rust's power with 20% of the complexity
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// std/async - Async runtime utilities
// Wraps tokio for convenient async/await

// Re-export common async types
// use tokio::time::Duration
// use tokio::time::sleep

/// Sleep for the specified milliseconds
@async
pub fn sleep_ms(ms: int) {
    // In generated Rust: tokio::time::sleep(Duration::from_millis(ms as u64)).await
}