I put the login method in a single function with a return type of LoginResut which contains necessary information from TencentLoginResp and TencentUserInfoResp,
now I want to wrap login and getInfo in a single function that returns a future,
but the login logic requires to listen on a stream, I cannot handle it properly,
I put the login method in a single function with a return type of LoginResut which contains necessary information from TencentLoginResp and TencentUserInfoResp,
now I want to wrap
login
andgetInfo
in a single function that returns a future,but the login logic requires to listen on a stream, I cannot handle it properly,
Anyone can help me?