Channels in Go can be _______ or _______ depending on whether they have a buffer.

  • Asynchronous, Buffered
  • Asynchronous, Unbuffered
  • Synchronous, Buffered
  • Synchronous, Unbuffered
Channels in Go can be synchronous or asynchronous and buffered or unbuffered. Synchronous channels block the sender until the receiver is ready, while asynchronous channels allow the sender to continue immediately. Buffered channels have a capacity, allowing multiple senders to store data without immediate consumption.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *