https://kotlinlang.org logo
#announcements
Title
# announcements
a

aidanvii

04/24/2017, 10:59 AM
I’m looking for some more examples of how to use the
provideDelegate
operator. The example code on the documentation is slightly confusing: https://kotlinlang.org/docs/reference/delegated-properties.html Does this create an instance of
ResourceLoader
which then creates the delegate? Will the
ResourceLoader
be gc’d after it’s created the delegate? It also mentions it can be done with an extension function, but there is no example of this.
a

aidanvii

04/24/2017, 2:55 PM
@louiscad thanks!
2 Views