How to Return Values from Python Threads

  Рет қаралды 7,216

CodersLegacy

CodersLegacy

Жыл бұрын

Normally, a Python Thread cannot have a Return Value to send back to the Main Thread from which it was created. In this Video Tutorial we will give you any easy way of solving this issue by creating our own Custom Thread Class which can return values.
Website Link:
coderslegacy.com/python/get-r...

Пікірлер: 9
@megsman4749
@megsman4749 5 ай бұрын
Nice! I saw one solution where they put run to sleep while they get the return value. This seems better. I used it to fetch data from an online database. It works beautifully.
@adamsladecek9276
@adamsladecek9276 11 ай бұрын
Thank you for the video, it helped a lot.
@iaroslavz2644
@iaroslavz2644 2 ай бұрын
Thank you very much. It's a very nice and simple solution.
@k0.9486
@k0.9486 Жыл бұрын
Great video, very helpful. What's odd to me though I'm calling a function with an if statement and the function always returns or prints as the condition is true, even when i know it's not after over riding the class.
@adamfit9158
@adamfit9158 Жыл бұрын
Wenderfull lesson
@adamfit9158
@adamfit9158 Жыл бұрын
Any solution sir for the multiprocessong the same as threading.
@mehrdadm.5804
@mehrdadm.5804 3 ай бұрын
very useful Video, thx
@coderslegacy5661
@coderslegacy5661 3 ай бұрын
Glad you liked it
@rodrigobautistagutierrez5366
@rodrigobautistagutierrez5366 10 ай бұрын
Such an clumsy example, Queue is much more better , simpler and thread-safe.
Thread Pools in Python - Asynchronous Programming
10:25
NeuralNine
Рет қаралды 27 М.
How Do You Kill a Python Thread?
6:24
Miguel Grinberg
Рет қаралды 23 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 173 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 7 МЛН
КАК ДУМАЕТЕ КТО ВЫЙГРАЕТ😂
00:29
МЯТНАЯ ФАНТА
Рет қаралды 9 МЛН
Introducing Pointers in Python using the Ctypes Library
17:02
CodersLegacy
Рет қаралды 6 М.
Multithreading in Python MADE EASY | Python Threading Module
10:45
Fabio Musanni - Programming Channel
Рет қаралды 8 М.
Python Tutorial 20: Understanding Python Threads and Threading
30:56
Paul McWhorter
Рет қаралды 18 М.
threading vs multiprocessing in python
22:31
Dave's Space
Рет қаралды 567 М.
Python multithreading 🧵
13:34
Bro Code
Рет қаралды 63 М.
How to Make 2500 HTTP Requests in 2 Seconds with Async & Await
4:27
John Watson Rooney
Рет қаралды 109 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 173 МЛН