Channels and Deadlock in golang

  Рет қаралды 26,137

Hitesh Choudhary

Hitesh Choudhary

Күн бұрын

Пікірлер: 37
@susangeorge1318
@susangeorge1318 3 жыл бұрын
Thank you Sir for this awesome course.If possible could you make a short video precisely only for channels & go routines explaining its real world implementation to understand it better.Also some exercises or activities would help. Thank you once again.
@SaintMrDog
@SaintMrDog 2 жыл бұрын
One of the pivotal points of channels not mentioned is from the CTX or context package. Channels depending on the application can hang and you will want a want to kill them so your application can continue. CTX provides a timeout feature for such cases. Amongst a lot of other featues.
@adityanigam8373
@adityanigam8373 27 күн бұрын
Thanks for the beautiful explanation!
@rajathmr4171
@rajathmr4171 5 ай бұрын
Hey I watched the whole playlist its amazing, in this video I have on dobut in both of the go Routines you are saying ch as prototype for what reason? is it to make these Routines as Read Only or Send Only?
@junaidkhalidi-mw1zs
@junaidkhalidi-mw1zs Жыл бұрын
At last you said totally a different video can be made on structuring an application in Go. please make video on structuring an application with go . Big request.
@soniapaul288
@soniapaul288 3 жыл бұрын
All likes, not a single dislike yet, very nice. The first thing comes into mind with 'Channels', is related to Medical, injecting fluids into human body.
@Vikas-dm9uc
@Vikas-dm9uc Жыл бұрын
Really awesome series bhaiya, bt can u pls make a little more detailed video about these channels.
@pedroreisbr
@pedroreisbr 2 жыл бұрын
Thank you for this course Hitesh!
@nsg2945
@nsg2945 6 ай бұрын
please add some adding testcases videos too to make it complete course . Thanks
@HSharpknifeedge
@HSharpknifeedge 2 жыл бұрын
Dude one way to explain it to your viewers is: have you used pipes in Linux? the LValue is the sender, the Pipe is channel, and the RValue is the receiver and surprisingly is the sender has nothing more to deliver to the receiver, then the channel is closed!
@balanepalaiyathane9714
@balanepalaiyathane9714 2 жыл бұрын
Very nice and thanks for covering all points
@abhaysingh.632
@abhaysingh.632 Жыл бұрын
Thank you sir, it was an amazing journey
@pravinbudage3942
@pravinbudage3942 2 жыл бұрын
You have explained the things very well. Thanks
@kavinderpanwar1434
@kavinderpanwar1434 Жыл бұрын
Amazing course content, thankyou
@usmanarif5707
@usmanarif5707 2 жыл бұрын
Awesome content as usual. Stay blessed brother❤️
@danielvega646
@danielvega646 4 ай бұрын
To be honest, programming the web makes more sense than OOP with this brand new paradigm of concurrency that Go offers us. Is like a more natural logic, it feels closer to how we experiment the reality: you don't go around and live making everything a component or object and relate it with other objects, if you do it so, it's because of living too much time developing under OOP paradigm, but the common sense is more like the concurrency: you do multiple tasks at a time and you are just the main channel retrieving data from multiple processes and based on the data you do one thing, stop another and so on. What do you guys think? I like OOP, is cool and functional, has passed the test of times and empires have been raised up on technologies with this paradigm, but haven't you sometimes felt cumbersome and overengineered a solution made on OOP? Like wow, so many code, so many files, names, classes, layers and steps through just for uploading a damn file!
@asimrehman4475
@asimrehman4475 3 жыл бұрын
Hitesh Sir, Kindly can you make the video on refactoring topics in Golang?
@djharshal0007
@djharshal0007 2 жыл бұрын
Very informative 👌🏻👍🏻
@mridulbagla
@mridulbagla 3 жыл бұрын
Thank you sir for this series
@HiteshCodeLab
@HiteshCodeLab 3 жыл бұрын
🙂
@mokshitvohra9004
@mokshitvohra9004 Жыл бұрын
any video on select
@YouAndImpact
@YouAndImpact 3 жыл бұрын
Great video 👍
@anywheredoor4699
@anywheredoor4699 Жыл бұрын
What is the use case of a channel, I mean why do we want our go routines to talk while executing
@surajmaity6194
@surajmaity6194 Жыл бұрын
Amazing
@cruiserider7263
@cruiserider7263 2 жыл бұрын
Go is pure love
@himanshutariyal7648
@himanshutariyal7648 2 жыл бұрын
One question, if we have multiple go routines and one of them is emitting data while other are listening to it, then how will we know which routine will get which data ? go func1 ( listener ) go func2 ( listener ) go func3 ( emitter ) { emits( val1 ); emits( val2 ); } How will we know which value goes to which function ?
@deveshagarwal7455
@deveshagarwal7455 Жыл бұрын
It totally depends on the go scheduler, similar to threads in java. Its totally random depends on the scheduler.
@ankitsagar255
@ankitsagar255 8 ай бұрын
you can create separate channels, and listen to specific channel in respective goroutine
@bhumit070
@bhumit070 3 жыл бұрын
Hello sir you gave ch in function and accessed myChannel in function how is it working I am not getting I tried to do it but got an error
@susangeorge1318
@susangeorge1318 3 жыл бұрын
It is a anonymous function hence although we have declared parameter as ch but we are passing the already declared myCh hence it doesn't matter which variable u pass the value will be the same.Hope it helps.
@susangeorge1318
@susangeorge1318 3 жыл бұрын
nums1 := 5 nums2 := 5 squareOf2 := func(num1, num2 int) int { return nums1 * nums2 }(nums1, nums2) fmt.Println(squareOf2) Try this for example
@flexairz
@flexairz 3 жыл бұрын
Better watch the video again.
@mridulbagla
@mridulbagla 3 жыл бұрын
@@susangeorge1318 Thanks, I was also getting confused in this but now it is clear.
@dhanushs1802
@dhanushs1802 2 жыл бұрын
You are correct, it works as mentioned in the above comments but he should have used ch. And that is also the reason he didn't get syntax highlight when he tried to close the receive only channel (he admits that around 17:20)
@Zahid110-r7u
@Zahid110-r7u 3 жыл бұрын
Sir 1 ishu task app process debug ManiMan fast how to solve please reply me
@anilkumargoli5167
@anilkumargoli5167 2 жыл бұрын
i think u used the Mych for closing instead ch ,that is reason it is not closing
@杨基根-h7w
@杨基根-h7w 2 жыл бұрын
thanks a lot.
Math, crypto and random number in golang
13:18
Hitesh Choudhary
Рет қаралды 17 М.
Race Condition in golang
18:46
Hitesh Choudhary
Рет қаралды 21 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 26 МЛН
КОГДА К БАТЕ ПРИШЕЛ ДРУГ😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 6 МЛН
🕊️Valera🕊️
00:34
DO$HIK
Рет қаралды 18 МЛН
Why I'm learning Go
21:35
Web Dev Cody
Рет қаралды 68 М.
Flutter Forked | Flutter++ is here
16:20
Hitesh Choudhary
Рет қаралды 18 М.
Golang Channels Or Wait Groups? Let Me Explain.
18:32
Anthony GG
Рет қаралды 25 М.
Handling routes and testing routes in golang
20:25
Hitesh Choudhary
Рет қаралды 17 М.
Concurrency and goroutines in golang
13:18
Hitesh Choudhary
Рет қаралды 43 М.
I'm Coming Around To Go...
21:33
Theo - t3․gg
Рет қаралды 119 М.
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 337 М.
This is why Go Channels are awesome
6:06
Web Dev Cody
Рет қаралды 14 М.
2 MAGIC SECRETS @denismagicshow @roman_magic
00:32
MasomkaMagic
Рет қаралды 26 МЛН