D
D
D55RUS2020-05-06 14:30:44
Python
D55RUS, 2020-05-06 14:30:44

How to make 2 functions work simultaneously in the software?

what i want to do:

def_1:
    делать что-то раз в n-ое кол-во минут

def_2:
    основной блок функций, тут происходит что-то важное..


I need the function def_1 to work simultaneously with the function def_2

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
ediboba, 2020-05-06
@D55RUS

Run them in different threads. asyncio will help

M
Miit, 2020-05-06
@Miit

Either learn async or use threads from the threading module

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question