import threading

event_t=threading.Event()

def event():
    print("Event is waitting...")
    event_t.wait()
    print("Event is now working...")


t1=threading.Thread(target=event)
t1.start()
x = input("Do you want triggrer the event? y/n:")
if x=="y":
    event_t.set()




684a2c255c1ba5bfb06a5a8ed1bbb046fa9bd7ee
<mask token>

<mask token>


def event():
    print('Event is waitting...')
    event_t.wait()
    print('Event is now working...')


<mask token>
t1.start()
<mask token>
if x == 'y':
    event_t.set()

<mask token>
event_t = threading.Event()


def event():
    print('Event is waitting...')
    event_t.wait()
    print('Event is now working...')


t1 = threading.Thread(target=event)
t1.start()
x = input('Do you want triggrer the event? y/n:')
if x == 'y':
    event_t.set()

import threading
event_t = threading.Event()


def event():
    print('Event is waitting...')
    event_t.wait()
    print('Event is now working...')


t1 = threading.Thread(target=event)
t1.start()
x = input('Do you want triggrer the event? y/n:')
if x == 'y':
    event_t.set()

import threading

event_t=threading.Event()

def event():
    print("Event is waitting...")
    event_t.wait()
    print("Event is now working...")


t1=threading.Thread(target=event)
t1.start()
x = input("Do you want triggrer the event? y/n:")
if x=="y":
    event_t.set()



