We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SDK版本:2.9.0 问题描述:合约加载并调用后,使用BcosSDK的stopAll方法没法实现优雅退出。
该线程来自于合约创建时Contract构建器中EventSubscribe变量生成的线程池;
目前暂时用下述方式实现优雅退出: Field field = Contract.class.getDeclaredField("eventSubscribe"); field.setAccessible(true); EventSubscribe eventSubscribe = (EventSubscribe) field.get(合约对象); eventSubscribe.stop();
The text was updated successfully, but these errors were encountered:
感谢提出issue,这里应该是要手动停止event订阅监听,BcosSDK的stopAll不能及时释放。我们会考虑加上sdk停止时停止所有event监听线程。
Sorry, something went wrong.
No branches or pull requests
SDK版本:2.9.0
问题描述:合约加载并调用后,使用BcosSDK的stopAll方法没法实现优雅退出。
该线程来自于合约创建时Contract构建器中EventSubscribe变量生成的线程池;
目前暂时用下述方式实现优雅退出:
Field field = Contract.class.getDeclaredField("eventSubscribe");
field.setAccessible(true);
EventSubscribe eventSubscribe = (EventSubscribe) field.get(合约对象);
eventSubscribe.stop();
The text was updated successfully, but these errors were encountered: