apm icon indicating copy to clipboard operation
apm copied to clipboard

Async Function

Open hal-shu-sato opened this issue 3 years ago • 1 comments

Is your feature request related to a problem? Please describe.

Now, apm is mainly written using the sync function. But I heard sync functions block the process. Is it better to replace sync functions with async ones? Please give your opinion.

Describe the solution you'd like

Replace sync functions with async functions.

Describe alternatives you've considered

Additional context

hal-shu-sato avatar Jan 16 '22 13:01 hal-shu-sato

I agree with you. I think it's better to start with the functions that are closest to the root, because halfway asynchronization can cause timing-dependent bugs that are difficult to debug.

mitosagi avatar Jan 16 '22 13:01 mitosagi