How to complete the program Godot 3.0?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

In Godot 2.1 to complete the program I used method:

OS.get_main_loop().quit()

How to complete the program Godot 3.0?

:bust_in_silhouette: Reply From: rolfpancake

You mean to exit/quit the game?

get_tree().quit()

See here: http://docs.godotengine.org/en/latest/learning/features/misc/handling_quit_requests.html