Skip to content

Tims101/hh-school-async

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

hh-school-async

Написать на Питоне код, реализующий возможности асинхронной группы:

def final_callback():
    # executes after all functions from async group were called
    pass


def error_callback(e):
    # executed on error
    pass
    
group = AsyncGroup(final_callback, error_callback)
group.add(func1)
group.add(func2)
group.add(func3)

# ...

func1(x, y)
func2()
func3(z)

# now final_callback should be executed

В случае возникновения любой необработанной ошибки, должен быть вызван error_callback.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%