Tag Archives: Threading

Why creating objects inside constructors is a bad move

So recently I’ve started studying how to create multi-threaded applications and one of the problems I stumbled upon is the “this” reference escaping. What it means is that you pass the reference of an object that isn´t fully constructed to another piece … Continue reading

Posted in Knowledge | Tagged , , , , , , , | 2 Comments

Sleeping threads using events in python

So today i needed to find a way to sleep() a thread in python without blocking the other threads. For some reason, time.sleep() wasn’t cutting it and was blocking my main thread. Well, unfortunately python dosen´t have a thread.sleep() (as … Continue reading

Posted in Knowledge | Tagged , , | Leave a comment