Queue, this method will raise a ValueError. If event is not an event currently in the Return value is an event which may be used for later cancellation of the eventĬhanged in version 3.3: kwargs parameter was added. Kwargs is a dictionary holding the keyword arguments for action. A lower number represents a higher priority.Įxecuting the event means executing action(*argument, **kwargs).Īrgument is a sequence holding the positional arguments for action. With the return value of the timefunc function passed to the constructor.Įvents scheduled for the same time will be executed in the order of their The time argument should be a numeric type compatible enter ( 5, 1, print_time, kwargs = ) ¶ # despite having higher priority, 'keyword' runs after 'positional' as enter() is relative. enter ( 5, 2, print_time, argument = ( 'positional' ,)). sleep ) > def print_time ( a = 'default' ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |