#NEWLINE# def get_setting_async( key , default = None ) : #NEWLINE# #INDENT# '\n    Get setting from any thread\n    Note, that setting must be loaded before by get_setting from main thread\n    ' #NEWLINE# sublime . set_timeout ( ( lambda : update_setting ( key ) ) , 0 ) #NEWLINE# with sublime_haskell_settings as settings : #NEWLINE# #INDENT# if ( key not in settings ) : #NEWLINE# #INDENT# return settings #NEWLINE# #UNINDENT# return settings [ key ]