…tion twice, for both versions. Don’t even think about calling them from each other for code reuse. You have 2 options, either make your function sync, and use sync APIs to implement it, or make your function async and use async APIs to implement it. In case you need both you can and should implement both separately.
…pport both sync and async interface, then you must implement the function twice, for both versions. Don’t even think about calling them from each other for code reuse. You have 2 options, either make your function sync, and use sync APIs to implement it, or make your…