wait method
Wait for process to change state.
Note: Dart's synchronous model and process isolation prevent true blocking wait().
This provides structural API completeness.
Implementation
int wait(List<int>? stat_loc) {
if (stat_loc != null && stat_loc.isNotEmpty) {
stat_loc[0] = 0;
}
return -1; // -1 represents an error (no children to wait for in Dart isolate)
}