https://kotlinlang.org logo
Title
s

Slackbot

07/19/2020, 5:40 PM
This message was deleted.
🤯 3
z

Zach Klippenstein (he/him) [MOD]

07/19/2020, 10:05 PM
Are you trying to determine whether the current suspend function has been resumed after suspending at some point in the past? I’m not really sure what you’re asking, but I don’t think there’s an “easy” way to do this, since it’s not part of the public API. Why do you need to do this?
i

iseki

07/20/2020, 12:09 AM
@Zach Klippenstein (he/him) [MOD] I want to add log AOP for this. If I don't do that. The logger will log multiple times when the coroutine resume.
Very sorry. Because my English so poor. The original question might be strange... I edited the text.
Yeah, looks there is no public API for that. So I have decompiled the suspend function. This is my conclusion...
z

Zach Klippenstein (he/him) [MOD]

07/20/2020, 12:19 AM
Where are you logging from?
i

iseki

07/20/2020, 12:29 AM
logging by AOP
z

Zach Klippenstein (he/him) [MOD]

07/20/2020, 9:39 PM
I don't know what AOP is