BewareMyPower commented on issue #11823:
URL: https://github.com/apache/pulsar/issues/11823#issuecomment-907612758
I think a temporary solution is to avoid C++ object's destructor in `async`
functions, like
```python
consumer = None
async def async_func(client, rv):
global consumer # use the global variable
consumer = client.subscribe('sometopic', 'somesub')
consumer.close()
print("async returning", rv)
return rv
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]