# Video Tutorial: Introducing Concurrency Part 1: NSOperation

**URL:** <https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068>\
**Category:** 🎓 Courses & Articles\
**Created:** [March 4, 2016, 1:47pm UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068 "2016-03-04T13:47:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![samdavies](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/samdavies/32/111915_2.png) [@samdavies](https://forums.kodeco.com/u/samdavies)\
**Post date:** [March 4, 2016, 1:47pm UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/1 "2016-03-04T13:47:17Z")

</div>

Learn about what an NSOperation is, and how you can create and run them.

 
* * *
 This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/4034-introducing-concurrency/lessons/2](https://www.raywenderlich.com/4034-introducing-concurrency/lessons/2)

---

<div class="post-metadata">

**Author:** ![eranartzi1](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/eranartzi1/32/31460_2.png) [@eranartzi1](https://forums.kodeco.com/u/eranartzi1)\
**Post date:** [April 28, 2016, 1:31am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/2 "2016-04-28T01:31:52Z")

</div>

Hi @samdavies

I have a problem with the `NSBlockOperation`.  
In the video you are referring to a result property when you’re writing

```swift
let summationOperation = NSBlockOperation(block: {
    result = 2 + 3
})

```

But Xcode does not recognize the ‘result’ property you’re referring to, I cant find it in the docs as well…

Any suggestions?

Best,

Eran Artzi

---

<div class="post-metadata">

**Author:** ![samdavies](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/samdavies/32/111915_2.png) [@samdavies](https://forums.kodeco.com/u/samdavies)\
**Post date:** [May 2, 2016, 7:50am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/3 "2016-05-02T07:50:54Z")

</div>

Hi,

The `result` property is a variable that has been declared in the outer scope - for example:

```swift
var result: Int = 0
let summationOperation = NSBlockOperation(block: {
  result = 2 + 3
})

```

It’s not a special value or anything - and doesn’t represent best practice. It’s just a demo to get the concept of `NSBlockOperation` out quickly.

Hope that helps

sam

---

<div class="post-metadata">

**Author:** ![eranartzi1](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/eranartzi1/32/31460_2.png) [@eranartzi1](https://forums.kodeco.com/u/eranartzi1)\
**Post date:** [May 2, 2016, 11:57pm UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/4 "2016-05-02T23:57:15Z")

</div>

Oh…got it,

Thanks!

---

<div class="post-metadata">

**Author:** ![ratel](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@ratel](https://forums.kodeco.com/u/ratel)\
**Post date:** [November 2, 2016, 7:16am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/5 "2016-11-02T07:16:04Z")

</div>

Hi @samdavies Thank you for this tutorial. I have a problem with workspace file. I opened workspace file and clicked playground file inside of it. But it says “No such module Compressor” I searched google i do some solutions but it doesnt work anyway.

---

<div class="post-metadata">

**Author:** ![samdavies](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/samdavies/32/111915_2.png) [@samdavies](https://forums.kodeco.com/u/samdavies)\
**Post date:** [November 3, 2016, 1:47am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/6 "2016-11-03T01:47:56Z")

</div>

Hi @ratel,

Can you try selecting the Compressor target and building? The first time you open the workspace you have to build the Compressor library in order that the playground can “see” it.

sam

---

<div class="post-metadata">

**Author:** ![ratel](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@ratel](https://forums.kodeco.com/u/ratel)\
**Post date:** [November 3, 2016, 7:16am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/7 "2016-11-03T07:16:28Z")

</div>

Thank you for quick reply @samdavies ! I have tried as you say but result is same. Also all of challange and demo projects still 2.0 It is hard to refactor 😕

---

<div class="post-metadata">

**Author:** ![samdavies](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/samdavies/32/111915_2.png) [@samdavies](https://forums.kodeco.com/u/samdavies)\
**Post date:** [November 3, 2016, 7:57am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/8 "2016-11-03T07:57:15Z")

</div>

@ratel

Oh, that’s a shame - sorry. Not sure what else to suggest.

There is a much improved update in the works, currently being recorded. I’m not sure on the release date, but it will be fully up-to-date with Swift 3 and include many improvements over this original course.

sam

---

<div class="post-metadata">

**Author:** ![ratel](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@ratel](https://forums.kodeco.com/u/ratel)\
**Post date:** [November 3, 2016, 8:28am UTC](https://forums.kodeco.com/t/video-tutorial-introducing-concurrency-part-1-nsoperation/7068/9 "2016-11-03T08:28:33Z")

</div>

You guys are awesome! Okay then, no problem. I can try these resources later on.
