Tarika Chawla
09/27/2021, 2:43 PMlouiscad
09/27/2021, 5:07 PMTarika Chawla
09/27/2021, 5:16 PMs.dependency 'accesstokenmodule'
louiscad
09/27/2021, 5:30 PMTarika Chawla
09/27/2021, 5:32 PMKotlin_ObjCExport_toKotlinSelector
louiscad
09/27/2021, 5:35 PMTarika Chawla
09/27/2021, 5:36 PMlouiscad
09/27/2021, 5:37 PMTarika Chawla
09/27/2021, 5:37 PMlouiscad
09/27/2021, 5:37 PMTarika Chawla
09/27/2021, 5:39 PMclass Foo
with a function getFooString()
. I need to make sure that by the time I instantiate the Foo class as `private let foo = Foo()`the KMM module should be loaded. More like a race condition.
In order to solve it, we added private lazy var
instead of using private let
when instantiating the class the very first time.
So we wait till we need to use it in the hope that it will be available by then.louiscad
09/29/2021, 6:21 PMTarika Chawla
09/29/2021, 10:12 PMlouiscad
09/29/2021, 10:34 PMTarika Chawla
09/29/2021, 11:13 PM