import threading
from time import sleep
from tqdm import tqdm


def target_function(name: str = 'someone') -> None:

	print(f'hello, {name}!')

	print(f'you are in the thread {threading.current_thread().name}')

	for i in tqdm(range(5)):

		sleep(1)
		

thread_01 = threading.Thread(name='t1', target=target_function, args=['Bruno'])

thread_01.start()

print('executed in an incertain moment (after or along thread exection)')

thread_01.join()

print('executed after join thread 01')

import threading
from time import sleep
from tqdm import tqdm


def target_function(name: str = 'someone') -> None:

	print(f'hello, {name}!')

	print(f'you are in the thread {threading.current_thread().name}')

	for i in tqdm(range(5)):

		sleep(1)
		

thread_01 = threading.Thread(name='t1', target=target_function, args=['Bruno'])

thread_01.start()

print('executed in an incertain moment (after or along thread exection)')

thread_01.join()

print('executed after join thread 01')
