See Original text in context
method app_lifetime(Thread: --> Bool)
Returns False
unless the named parameter :app_lifetime
is specifically set to True
during object creation. If the method returns False
it means that the process will only terminate when the thread has finished while True
means that the thread will be killed when the main thread of the process terminates.
my = Thread.new(code => );my = Thread.new(code => , :app_lifetime);say .app_lifetime; # OUTPUT: «False»say .app_lifetime; # OUTPUT: «True»