All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.jeffshaw.digitalocean.VolumeDeletion.scala Maven / Gradle / Ivy

package me.jeffshaw.digitalocean

import scala.concurrent.{ExecutionContext, Future}

case class VolumeDeletion(
  volumeId: String
) {
  def complete()(implicit client: DigitalOceanClient, ec: ExecutionContext): Future[Unit] = {
    client.poll[Boolean](Volume.isDeleted(volumeId), identity).map(Function.const(()))
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy