Mike CodeZig | 25, If expressionWe can use if expression to execute some code conditionally.14h ago14h ago
Mike CodeTokio | 11 , TickerWe can use ticker to execute some code repeatedly at some interval.16h ago16h ago
Mike CodeTokio | 10 , TimeoutWe can use timeout function to set a timeout for a future , if a future within this time duration doesn’t complete , it will return an Err.1d ago1d ago
Mike CodeZig | 23 , Enum LiteralsEnum literals allow specifying the name of an enum field without specifying the enum type.2d ago2d ago
Mike CodeTokio | 09 , SleepWe can use sleep function from tokio to asynchronously pause execution for a specified duration.2d ago2d ago
Mike CodeZig | 22 , While LoopA while loop is used to repeatedly execute an expression until some condition is no longer true.3d ago3d ago
Mike CodeRust | How to use chrono to format a time.First , let’s add chrono crate to our dependencies, in cargo.toml file:3d ago3d ago
Mike CodeZig | 21, Return values from a switch.We can return values from a switch statement.4d ago4d ago
Mike CodeRust | How to combine multiple iterators | chainWe can use chain method to combine multiple iterators.4d ago14d ago1