Advanced Golang: Goroutines & Channels

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • In this video I explain how Goroutines, Channels and Wait Groups work in Golang by going through a real world example.
    🌱 Check the "Golang Essentials" Playlist here: • Advanced Golang
    👉 Support me on PATREON for more content like this / tiagotaquelim
    📢 We're building a Discord community, come and join
    / discord
    📚 Resources
    Article: dave.cheney.ne...
    Go Book: www.gopl.io/
    Tour of Go: go.dev/tour/co...
    #golang
    Video titles ideas (for the algo):
    Go Concurrency: Go Routines & Channels
    Goroutines in Golang
    Channels and Goroutines
    How Goroutines work in golang

Комментарии • 10

  • @john.dough.
    @john.dough. 6 месяцев назад

    Thank you so much for showing the errors and ways things can go wrong! Very insightful! :]

  • @vb_gh
    @vb_gh 4 месяца назад

    Nice video🙏🏽. Also could you explain what you meant over here? I couldn’t really understand you.
    You said when we use channels in this manner, what?
    15:08
    Thanks in advance for your explanation.

  • @licokr
    @licokr 6 месяцев назад

    Nice work! 👍 thanks for the video!

  • @inteliconn995
    @inteliconn995 6 месяцев назад +1

    Thanks!

  • @aadilkp5335
    @aadilkp5335 6 месяцев назад

    Great video! Thanks

  • @prashlovessamosa
    @prashlovessamosa 6 месяцев назад

    Thanks for sharing Bud.

  • @rafael.aloizio1769
    @rafael.aloizio1769 4 месяца назад

    Hey Tiago, great video man. Could you please share your theme? Or is this a custom highlighting?

  • @sundayezeilo192
    @sundayezeilo192 4 месяца назад

    @TiagoTaquelim How are we able to range over a channel after closing it? Would it add any benefit if we executed wg.Wait() and close(ch) in a separate goroutine?

    • @TiagoTaquelim
      @TiagoTaquelim  4 месяца назад

      Hey! wg.Wait is syncrhonous (it blocks the flow of the program) it cannot be in a goroutine.
      We cannot range a closed channel, it will panic.