Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Case Typo #287

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix: Case Typo #287

wants to merge 1 commit into from

Conversation

Ryuuusuke
Copy link

@Ryuuusuke Ryuuusuke commented Apr 10, 2025

Ada 2 blok kondisi pada select tersebut.

  • Kondisi case data := <-messages:, akan terpenuhi ketika ada serah terima data pada channel messages.
  • Kondisi case <-time.After(time.Second * 5):, akan terpenuhi ketika tidak ada aktivitas penerimaan data dari channel dalam durasi 5 detik. Blok inilah yang kita sebut sebagai blok timeout.

the condition inside the codeblock is case data := <-ch and messages channel is not written yet

Fix: Case typo
@Ryuuusuke Ryuuusuke changed the title Fix: Typo di bagian codeblock Fix: Case Typo Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant