isar / isar/hive

Hive.init does not return future

Open
#1,101 0 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Dart
Stars
4.4k
Forks
449
PR merge metrics
No merged PRs in 30d

Description

I am using hive on dart native so I am initializing Hive using `Hive.init()`
but using flutter the init does return future `await Hive.initFlutter();`.

Is there no need for hive initializing in dart native to return future?.
If this is an async that returns void the programmer does not have an efficient way to continue his program and make sure the process is complete, he can use `await Future.delay()` but this is not a good way to do stuff.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the Dart-native Hive.init() entry point with the Flutter Hive.initFlutter() entry point and determine whether native initialization can expose completion. Define what callers should observe when initialization finishes, then verify the behavior for both native Dart and Flutter usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
database
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.