 skala phuture aan ‌ compleat mariyu aapai function ‌ l Madhya teedaa emti ?
` mariyu aapai `  mariyu  ` aan compleat `  rendoo kaal ‌ byaak function dwara kontha bavishyathu falithaanni gamaninchadaaniki mimmalni anumatistaayi .  ayithe , ` mariyu aa tarwata `  chain cheyabadavachhu mariyu  ` aan compleat ` laaw kakunda ,  kaal byaak function ‌ lu vartinche kramaaniki idi haamii estunde .  adanamga , ` mariyu aapai ` ki ichina kaal ‌ byaak pakshika function kaavachhu ,  phalithaala upasamitini Bara nirvahisthundhi  ( udaa .,  kevalam  ` successes `  ledha  ` failure `  Bara ).

` mariyu aapai `  mariyu  ` map `  upayoginchi krindhi udaaharananu pariganinchandi :

```
def demoAndThen(fut: Future[Int]): Future[Int] = {{
  fut.andThen {case Success(value) => println(s"andThen1: $value")}
    . mariyu tarwata  { kesu vision ( viluva ) => println(s"andThen2: $value")}
    . map  {i =>
      println( lu " map : $i")
      i
    }
}
```

` fut `  vijayavantamga puurtayinappudu , "andthen1: ...", "andThen2: ..."  mariyu  "map: ..."  aa kramamlo mudrinchabadataayi .

`onComplete`  mariyu  `map`  upayoginchi saaroopya udaaharananu pariganinchandi :

```
def demoOnComplete( fut :  phuture [ int ]):  phuture [ int ] = {{
  fut.onComplete {t: Try[Int] => println(s"onComplete1: $t")}
  fut.onComplete {t: Try[Int] => println(s"onComplete2: $t")}
  fut.map {i =>
    println( lu " map : $i")
    i
  }
}
```

 yea sandarbhamlo , ` fut `  vijayavantamga puurtayinappudu , "onComplete1: ...", "onComplete2: ..."  mariyu  " map : ..."  konni paerkonabadani kramamlo mudrinchabadataayi .

` mariyu aapai `  chain cheyabadinappatiki ,  kaal ‌ byaak function saadharanamga vachey  ` phuture `  falithaanni prabhaavitam cheeyadu .  conei gurthunchukondi :  kaal ‌ byaak konni praanaantaka lopaalanu visirithe ,  falithamgaa vachey bavishyathu eppatikee porthi kadhu .