Skip to content

[Question]: EventSources.createFactory(okHttpClient).newEventSource(request, listener); 得异步,不然会阻塞线程,变成单线程 #78

@pengwei234

Description

@pengwei234

版本信息

1.4.5

您的问题

Executors.newSingleThreadExecutor().submit(() -> {
EventSources.createFactory(okHttpClient).newEventSource(request, listener);
});

提问前确认

  • 我已经阅读过文档,搜索过现有的 issues,但没有找到答案
  • 为了项目更好的推广,请我 Star ♥️ 此项目

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions