# PRE-SIP: Suspended functions and continuations

**URL:** <https://contributors.scala-lang.org/t/pre-sip-suspended-functions-and-continuations/5801>\
**Category:** Scala Improvement Process\
**Created:** [July 8, 2022, 9:28pm UTC](https://contributors.scala-lang.org/t/pre-sip-suspended-functions-and-continuations/5801 "2022-07-08T21:28:22Z")\
**Posts on this page:** 1\
**Showing post:** 23

<div class="post-metadata">

**Author:** ![rssh](https://contributors.scala-lang.org/user_avatar/contributors.scala-lang.org/rssh/32/745_2.png) [@rssh](https://contributors.scala-lang.org/u/rssh)\
**Post date:** [July 11, 2022, 4:44pm UTC](https://contributors.scala-lang.org/t/pre-sip-suspended-functions-and-continuations/5801/23 "2022-07-11T16:44:48Z")

</div>

> Would it work If instead of a `suspend` keyword we have just `Suspend ?=> A`

It’s mean that function f: suspended A=\>B. will have type. A =\> (Suspend? =\> B) ?

If yes, let we have `List[A]` and method `map[B](f: A=>B):List[B]`.  
Than List.map(x =\> f(x)). will have type. List[Suspended?=\>Int]. Is it what we want ?

```auto
val result = List(1,2,3).map(f)
if (result.head == 1) then 
   // never will be here ? or will ?

```

---

_[View the full topic](https://contributors.scala-lang.org/t/pre-sip-suspended-functions-and-continuations/5801)._
