feat: add support for macos

Signed-off-by: Amogh Lele <amolele@gmail.com>
This commit is contained in:
sphericalkat committed 2024-07-18 05:47:07 +05:30
1 parent 3728a136b9
commit 74da8e2505
47 files changed
+1892 -20

No files matched your search

+2 -2
View File
@@ -31,14 +31,14 @@ import 'readability_bindings_generated.dart';
///
/// 1. Reuse a single isolate for various different kinds of requests.
/// 2. Use multiple helper isolates for parallel execution.
Future<ArticleResponse> parseAsync(String url) async {
Future<Article> parseAsync(String url) async {
final SendPort helperIsolateSendPort = await _helperIsolateSendPort;
final int requestId = _nextParseRequestId++;
final _ParseRequest request = _ParseRequest(url, requestId);
final Completer<ArticleResponse> completer = Completer<ArticleResponse>();
_parseRequests[requestId] = completer;
helperIsolateSendPort.send(request);
return completer.future;
return completer.future.then((ArticleResponse response) => response.article);
}
const String _libName = 'readability';