await in try/catch

This commit is contained in:
mertalev 2025-07-21 13:29:50 +03:00
parent 71a161c776
commit 7f1bb6c25e
No known key found for this signature in database
GPG Key ID: DF6ABC77AAD98C95

View File

@ -260,7 +260,7 @@ class _ThumbnailState extends State<Thumbnail> {
log.info( log.info(
'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms', 'Retrieved local image $localId in ${stopwatch.elapsedMilliseconds.toStringAsFixed(2)} ms',
); );
return ImmutableBuffer.fromUint8List(pointer.asTypedList(size)); return await ImmutableBuffer.fromUint8List(pointer.asTypedList(size));
} catch (e) { } catch (e) {
log.warning('Failed to retrieve local image $localId: $e'); log.warning('Failed to retrieve local image $localId: $e');
} finally { } finally {