Skip to content

how to use this?? property must be initialize or abstract #288

Description

@blackholeearth

code:

package com.my.project
 
import com.mayakapps.kache.FileKache
import com.mayakapps.kache.KacheStrategy

import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch

class AnilistQuery {

    val cache : FileKache  // error here...

    init {
        GlobalScope.launch (Dispatchers.Main)
        {
            val cache = FileKache(directory = "cache", maxSize = 10 * 1024 * 1024) {
                // Other optional configurations
                strategy = KacheStrategy.MRU
                // ...
            }
        }
    }


error:
i am getting error: Property must be initialized or be abstract

how to use this??

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions