mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-11-04 17:13:02 +00:00
Properly close last writer
otherwise Node.js doesn't quit
This commit is contained in:
parent
588ee87b83
commit
920cc3feaf
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@ import RecordBuilder from '../record/RecordBuilder.mjs';
|
|||
import RecordsWriter from '../record/RecordsWriter.mjs';
|
||||
import pretty_ms from 'pretty-ms';
|
||||
import terrain50_analyse_frequencies from 'terrain50/src/static/Terrain50AnalyseFrequencies.mjs';
|
||||
import { end_safe } from './StreamHelpers.mjs';
|
||||
|
||||
class RecordWrangler {
|
||||
#builder = new RecordBuilder();
|
||||
|
@ -58,7 +59,9 @@ class RecordWrangler {
|
|||
time_display = time_now;
|
||||
}
|
||||
}
|
||||
await writer.close();
|
||||
|
||||
console.log(`\nComplete! ${i_file}/${i} files/records_total written in ${pretty_ms(new Date() - time_start)}`);
|
||||
}
|
||||
|
||||
make_example(sample_radar, sample_water) {
|
||||
|
|
Loading…
Reference in a new issue