Open-Acidification / TankController

Arduino and web GUI source code for the Open Acidification tank controller (pH-stat unit).
https://open-acidification.github.io/
Mozilla Public License 2.0
8 stars 33 forks source link

AppData.instance type issues #420

Closed jgfoster closed 1 year ago

jgfoster commented 1 year ago

The getter for AppData.instance is tied to a variable that is initially null so the type is simply Object. We should change this to a method that is known to return an instance of AppData so that var will correctly infer the type. This will show us "Asynchronous function invoked in a non-'async' function" as problems.

jgfoster commented 1 year ago

The same issue exists for TcInterface.instance. This identifies a few more "discarded_futures" isses.