Go routine and how to async

it is simple

go func() {
   for i:=0;i<10 ;i++  {
      fmt.Println("Hello %d",i)
      time.Sleep(time.Second/2)
   }

}()


with keyword go

Comments

Popular posts from this blog

Fixing the DeepSpeed Import Error While Fine-Tuning the Qwen Model

Amazon Linux 2023 - User data configuration for launch templates to connect to the EKS cluster

How to create ISM policy and rotate logs in opensearch